-
Notifications
You must be signed in to change notification settings - Fork 515
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
JSONDecodeError Expecting value: line 1 column 1 (char 0) (StarletteIntegration) #1550
Comments
Hi, May be another one traceback will be helpfull:
|
Same issue occurs to one of my applications as well. My application uses the Authorization header and the https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/ for storing access tokens and used the The stack trace similar to above is thrown when I try to execute the equivalent of https://fastapi.tiangolo.com/tutorial/security/get-current-user/: from fastapi import Depends, FastAPI
from fastapi.security import OAuth2PasswordBearer
app = FastAPI()
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
@app.get("/items/")
async def read_items(token: str = Depends(oauth2_scheme)):
# throws JSONDecodeError
return {"token": token} We have tried to remove all the existing middlewares but seems like that doesn't help. Interestingly, the endpoints that did not involve the use of tokens work fine. |
@MrSalman333 @polina-popova @biel-michael can one of you give me a curl request (with headers) where you run in to this? |
ok nvm could repro, fix coming soon |
Glad to see that you can reproduce the issue! Is there any schedule to release this? I saw that the proposed 1.9.3 release run is not successful. @sl0thentr0py |
@biel-michael @polina-popova @MrSalman333 1.9.3 is now out |
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.9.2
Steps to Reproduce
after using the new integration we got this error some times ,, not always
Expected Result
not causing an error
Actual Result
causing errors instead of reporting them >_<
The text was updated successfully, but these errors were encountered: