kwhitley / itty-durable

Cloudflare Durable Objects + Itty Router = shorter code
MIT License
236 stars 18 forks source link

TypeError: Cannot read properties of undefined (reading 'get') #11

Closed janat08 closed 2 years ago

janat08 commented 2 years ago

I get an error in production that doesn't happen on miniflare or wrangler dev. Wrangler tail doesn't show logs for it. https://ownthe.email/login

janat08 commented 2 years ago

heres some of my wrangler.toml

[durable_objects]
bindings = [
  { name = "SESSION", class_name = "Session" },
  { name = "STATE", class_name = "State"}
]
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["State", "Session"]
janat08 commented 2 years ago

I also had another environment in there, and while the docs then didn't mention anything about adjust wrangler for multiple environments they did expect you to do stuff, look at docs for what.