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

Calling Dashboard Api #5

Open
raj114 opened this issue Jan 31, 2020 · 1 comment
Open

Calling Dashboard Api #5

raj114 opened this issue Jan 31, 2020 · 1 comment

Comments

@raj114
Copy link

raj114 commented Jan 31, 2020

when i was calling ExJira.Dashboard.all() this api it will gives me the below error -
{:error, "Invalid content-type returned: text/plain"}
i also change the
%HTTPotion.Response{
body: body,
headers: %{hdrs: %{"content-type" => "application/json;charset=UTF-8"}}
} to
%HTTPotion.Response{
body: body,
headers: %{hdrs: %{"content-type" => "text/plain;charset=UTF-8"}}
} in request.ex but it will not work . can you please help me to solve it ?

@ryanhall-ttec
Copy link

took some code changes to get to the error here, but when I print out the body of the response I get "{:error,
"Invalid content-type returned: text/plain, response: Basic authentication with passwords is deprecated. For more information, see: https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/\n"}"

replacing the env variable password with an API token fixed this for me.

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