Skip to content

Commit 21725e6

Browse files
authored
Merge pull request #106 ignore content_type from credentials provider, from VasilyStepanov/main
2 parents 020d22a + 81eb8ec commit 21725e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ydb/aio/iam.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ async def _make_token_request(self):
130130
% await response.text()
131131
)
132132
response.raise_for_status()
133-
return await response.json()
133+
# response from default metadata credentials provider
134+
# contains text/plain content type.
135+
return await response.json(content_type=None)
134136

135137

136138
class ServiceAccountCredentials(JWTIamCredentials):

0 commit comments

Comments
 (0)