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

user_get_websudo is throwing throwing 'Expecting value: line 10 column 1 (char 9)' #1267

Closed
amad1101 opened this issue Oct 23, 2023 · 4 comments

Comments

@amad1101
Copy link
Contributor

The user_get_websudo method is throwing an 'Expecting value: line 10 column 1 (char 9)' exception because of the lack of not_json_response parameter not being passed in the user_get_websudo method.

@amad1101
Copy link
Contributor Author

In the jira.py, we need to update the call to answer = self.get("secure/admin/WebSudoAuthenticate.jspa", self.form_token_headers, not_json_response=True)

@amad1101
Copy link
Contributor Author

amad1101 commented Oct 23, 2023

I also had to decode the response as it comes in bytes

        decoded_answer = answer.decode()
        atl_token = None
        if answer:
            atl_token = (
                decoded_answer.split('<meta id="atlassian-token" name="atlassian-token" content="')[1]
                .split("\n")[0]
                .split('"')[0]
            )```

@gonchik
Copy link
Member

gonchik commented Oct 24, 2023

@amad1101 please raise PR.

@amad1101
Copy link
Contributor Author

amad1101 commented Nov 4, 2023

@gonchik - Created the following PR #1272

@amad1101 amad1101 closed this as completed Dec 6, 2023
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