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

Header expected to be dictionary but are passed as a string #119

Open
tahanakabi opened this issue Jan 15, 2025 · 1 comment
Open

Header expected to be dictionary but are passed as a string #119

tahanakabi opened this issue Jan 15, 2025 · 1 comment

Comments

@tahanakabi
Copy link

The headers are retrieved from the connection as a string. But they are expected to be a dictionary.
Getting the error:

ERROR - Failed during execution with error: Failed to create Ray JobSubmissionClient: headers must be a dict, got <class 'str'>

The fix is to use json.loads to convert the header to dict before assigning them to the headers attribute. (hooks.py line 92)

@venkatajagannath
Copy link
Contributor

Hey @tahanakabi ,

Thanks for reporting this issue! It's a good catch. Would you be interested in submitting a PR with a fix?

Guide for contributions is available here

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