Comments (10)
Thanks for the response. That's the sample I was using.
On previous versions of Hono with Miniflare 2.2.0, I was getting the error above. Now, with Hono 0.0.16, it's all resolved 🎉!
So, something in #55 probably fixed this issue.
Thanks again!
from hono.
Actually, maybe not necessarily Miniflare but the new Wrangler2 wrangler@beta
?
from hono.
Hi @justinnoel
I've tried a Durable Object example with Miniflare 2.2.0. It worked correctly.
Example is here: https://github.com/yusukebe/hono/tree/master/example/durable-objects
This code is based on the official example. It might be well if you use latest version of Hono. If it does not work, let's think about it together.
from hono.
Got the same ▲ [WARNING] Failed to get worker definitions TypeError: fetch failed
issue with Workers KV on the 3.1.0 version
from hono.
Hi @MatteoGauthier !
Could you provide some snippets to reproduce the problem?
I've tried to run the simple application using KV with v3.1.0. It works well.
import { Hono } from 'hono'
type Bindings = {
FOO: KVNamespace
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/', async (c) => {
await c.env.FOO.put('name', 'Hono')
const val = await c.env.FOO.get('name')
return c.text(`Hello ${val}`)
})
export default app
from hono.
Hi @MatteoGauthier !
Could you provide some snippets to reproduce the problem?
I've tried to run the simple application using KV with v3.1.0. It works well.
import { Hono } from 'hono' type Bindings = { FOO: KVNamespace } const app = new Hono<{ Bindings: Bindings }>() app.get('/', async (c) => { await c.env.FOO.put('name', 'Hono') const val = await c.env.FOO.get('name') return c.text(`Hello ${val}`) }) export default app
Oh sorry, here is a reproduction repository for the issue : https://github.com/MatteoGauthier/hono-fetch-issue-kv
from hono.
Thanks! I'll try it.
from hono.
I've tried your repo, but it works fine.
I did:
- Clone the repo.
yarn install
yarn dev
- Run
curl
command
You get an error when you start up Wrangler with the --local
option, right?
from hono.
@yusukebe Yes exactly with --local
(tested with latest wrangler
version)
from hono.
I see. But I can't seem to reproduce the issue. Hmm.
from hono.
Related Issues (20)
- Chaining routes in modular application seems impossible HOT 11
- hono/client hc<>() breaks when using with BunJS build HOT 4
- c.json() not setting status code correctly HOT 7
- i want the feature to list all routes like `rails routes`. HOT 1
- env method doesn't work on Cloudflare Pages HOT 8
- Issue tracking for experimental features HOT 2
- React + Vite SSR with Hono HOT 2
- Output of testClient returns a status function HOT 5
- Hono doesn't consider status codes from middlewares with `testClient` HOT 6
- Secure-Headers delete "X-Powered-By" should be an option. HOT 1
- [Service Worker] "Failed to execute 'fetch' on 'WorkerGlobalScope': Illegal invocation" HOT 3
- JSX containing <svg> with <title> seems to append page <head> HOT 1
- Triggers support for AWS Lambda adapter HOT 1
- WorkerEntrypoint ergonomic handler support HOT 3
- Type definition of the `app.all` client. HOT 1
- Utilities for testing WebSocket
- Deno throws on `useRequestContext` call HOT 5
- K6 Loadtests throws tons of error against Hono + Bun HOT 3
- Cookie not properly parsed. `validCookieNameRegEx` seems too strict. HOT 1
- Support for for a wildcard param? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hono.