-
Notifications
You must be signed in to change notification settings - Fork 315
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
dangerouslyIgnoreEtag
is ignored when calling putFile
#1632
Comments
A note that this part of the code worked for 2+ years and we started to get reports at the time of the Gaia Hub migration. |
dangerouslyIgnoreEtag
is not working when calling putFiledangerouslyIgnoreEtag
is ignored when calling putFile
@hirosystems/devops Can you check on this, or lmk how to best debug the Gaia config / proxies, that could impact it? |
@janniks Can you describe how setting |
@pradel to double-check, is the screenshot/request of a 412 with |
Is how headers are set. So only setting headers if Is etag handled by a proxy/cloudflare or done directly by the hub? Trying to figure out if there's a Stacks.js bug, but haven't been able to consistently reproduce yet.. |
@janniks yeah it's the screenshot from the failing call, it's weird that the |
From what I can discern, the failure is coming from the origin (the CDN) and not from Cloudflare. So it doesn't appear to be related to the infra changes from last year since there's been no changes with the CDN itself. |
Thanks 🙏 |
@janniks Yeah that's strange might be the wrong screenshot, during my tests I added the option to all the put calls made to Gaia. Ofc I don't have the error anymore today otherwise it would be too simple to debug. |
lmk how that goes -- happy to reopen |
What version of Stacks.js are you using?
"@stacks/auth": "6.11.3",
"@stacks/blockchain-api-client": "7.8.1",
"@stacks/common": "6.10.0",
"@stacks/connect": "7.7.0",
"@stacks/connect-react": "22.4.1",
"@stacks/encryption": "6.11.3",
"@stacks/keychain": "4.3.8",
"@stacks/network": "6.11.3",
"@stacks/profile": "6.11.3",
"@stacks/storage": "6.11.3",
"@stacks/transactions": "6.11.3",
"@stacks/wallet-sdk": "6.11.3",
Describe the bug
Since the migration to the new Gaia infra (don't know if it's related tho) we have had many reports of users having a 412 HTTP error code when trying to write to a Gaia bucket. I finally got the error so I was able to see what's happening there and it seems that the
dangerouslyIgnoreEtag
flag when callingputFile
is not respected. When I do the call withdangerouslyIgnoreEtag
set to true I see the following response from the Gaia server.For the following call
Request Headers:
Response Headers:
How to reproduce
Not sure how to reproduce consistently, many different people are facing that issue on Sigle tho.
Expected behavior
Using
dangerouslyIgnoreEtag
should make the call pass.The text was updated successfully, but these errors were encountered: