-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S3 persistency possible not working? #35
Comments
What are the names of the ENV variables? They have to be specific. Could you also maybe try passing the S3 opt with the explicitly referencing Also, if you don't already know this... S3 can be fickle, you have to create the bucket before hand and you have to create an Access Control Policy for your token that allows it read/write to that bucket. If you're not familiar with S3 let me know and I'll send you a sample. |
Using S3 regularly, so my env keys are fine. It turns out, I have to specify the region though.
So I've specified the region and it wokrs like charm.
Btw, thanks for the quick response. ps: it would be nice if the S3 plugin could provide error details, if possible.. |
Errors propagate back up through the plugins, for instance if:
Fails at the S3 level, you'll get that error back in that callback. |
There is no callback in this case. Gun keeps trying to create the key.. |
ooooh, yeah. That counts as a bug, because it should auto-retry up to an exponential retry limit where it finally does halt, and report the error. This needs to be fixed. Know any easy/simple inline exponential retry tricks? |
Here is a really simple exponential backoff algorithm: http://blog.johnryding.com/post/78544969349/how-to-reconnect-web-sockets-in-a-realtime-web-app OR here is a more sopisthicated package: https://github.com/unshiftio/recovery |
I was interested implementing this, so came up with a simple solution, please find here: speier/bakeoff |
Thanks, the johnryding article is actually really nice and helpful. Nice bakeoff library, just starred it. While, yes, this thread should be closed, a bug still remains on the infinite loop of S3 retries. Not very high on my priority list, but it is still on my mind. You should chat with me in the https://gitter.im/amark/gun! |
I've tried a really basic example, but doesn't see anything persisted to the specified S3 bucket.
What's wrong, am I miss something here?
Many thanks, keep up the good work!
The text was updated successfully, but these errors were encountered: