Skip to content
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

Better error handling for when the first turn isn't played #77

Open
skybird23333 opened this issue Sep 8, 2024 · 5 comments
Open

Better error handling for when the first turn isn't played #77

skybird23333 opened this issue Sep 8, 2024 · 5 comments

Comments

@skybird23333
Copy link

When the first loads the user it fetches from api.playyourdamnturn.com which works fine. However, after that it starts fetching from prod-civx-saves.s3.amazonaws.com which consistently returns 403 Forbidden. Clicking "user" and then my username temporarily fixes the issue.

@mrosack
Copy link
Member

mrosack commented Sep 9, 2024

Can you send the full URL it's trying to fetch? Those URLs should be public...

@skybird23333
Copy link
Author

Here's the one from mine: https://prod-civx-saves.s3.amazonaws.com/76561198379456350/gameCache.json

@mrosack
Copy link
Member

mrosack commented Sep 9, 2024

Interesting, thanks - I'll figure out why that's not getting set to public

@mrosack
Copy link
Member

mrosack commented Sep 9, 2024

Oh - you haven't played a turn yet? I guess that file won't exist until you've played a turn, I'll see if I can handle that better.

@skybird23333
Copy link
Author

My bad, first time using PYDT - but glad to see the issue isn't useless.

@skybird23333 skybird23333 changed the title Client errors when fetching games sometimes Better error handling for when the first turn isn't played Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants