menu
Channels
Team

How to use @begin/data locally?

May 9, 2019 at 7:36pm

May 9, 2019 at 7:51pm
so it looks like it does exist locally
  • reply
  • like
When I try to locally data.set() I get a ResourceNotFoundException
  • reply
  • like
DynamoDB docs suggest this is because the table doesn't exist
  • reply
  • like
Weird! It should work locally but you do need to define the data table in your .arc file like this https://github.com/brianleroux/fix-228/blob/master/.arc#L12-L16
  • reply
  • like
can you share a link to the problem source?
  • reply
  • like
ok, i missed the part about defining the tables. i'll try that and report back. thanks.
  • reply
  • like
data scopeID String dataID *String ttl TTL
  • reply
  • like
is 'data' here the table name? do I fill in scopeID and dataID ?
  • reply
  • like
ok, tested a simple data.set() and it works fine on staging, but fails locally
  • reply
  • like
is there some local setup I might have missed?
  • reply
  • like
so it works in staging but fails locally
  • reply
  • like
sorry, my fault. i failed to 'npx hydrate' after installing a new route. user error it is.
  • reply
  • like
np np! glad its working now =)
  • reply
  • like
we need better docs. the local dev currently depends on the .arc file existing and containing that table defn.
  • reply
  • like
docs are pretty good, this is the first tiny-issue i have run into
like-fill
1
  • reply
  • like