`unsupported_grant_type` with `google-auth-library` when in dev/deploy with wrangler

title. google auth library works in standard dev, but when using npx wrangler dev or npx wrangler deploy it fails to work. other environment variables load file so thats not an issue. from googling, there is a possible synchronization issue? (how that happens locally im not sure). ive flipped back and forth on the standard dev => wrangler dev like 3 times and its the same result: one works, one doesnt. the error is pretty normal + vague:
[cause]: {
message: 'unsupported_grant_type',
code: 400,
status: 'Bad Request'
}
[cause]: {
message: 'unsupported_grant_type',
code: 400,
status: 'Bad Request'
}
im getting the credentials from the same R2 bucket (logging it wrangler dev, is the exact same as standard dev) so thats not it either. im very unsure about the issue and help would be appreciated
1 Reply

Did you find this page helpful?