GithubHelp home page GithubHelp logo

Comments (2)

dalechyn avatar dalechyn commented on August 20, 2024

Hey @m4nuC, it would be awesome if you would provide a link to reproducible example!
Are you experiencing such when it's request has a GET method present or not?

Initially, Farcaster Bot makes a GET request, which doesn't have a body defined, therefore reading it might cause some issues.

After the initial render, on button clicks POST requests are being made that have a body defined.

Since there are no steps to reproduce, I would advocate trying to read c.req.json() when c.req.method === 'GET' is present.

Also, take the notice that raw Request body normally can be read only once, and reading it multiple times would throw an error, but Hono caches the read result so it won't throw an error.
https://developer.mozilla.org/en-US/docs/Web/API/Request
https://github.com/honojs/hono/blob/4ca5f60def726731b3afbf3f6137f0a4b92d8b27/src/request.ts#L222-L224

from frog.

tmm avatar tmm commented on August 20, 2024

Closing until we get a minimal reproduction.

from frog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.