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

Unauthorized error when connecting #5285

Open
jrote1 opened this issue Nov 21, 2024 · 7 comments
Open

Unauthorized error when connecting #5285

jrote1 opened this issue Nov 21, 2024 · 7 comments

Comments

@jrote1
Copy link

jrote1 commented Nov 21, 2024

What went wrong?

What happened:
I'm getting the following error in the network when clicking the connect button after enabling the plugin, no error is visible in the UI

Endpoint: /api/plugins/grafana-oncall-app/resources/plugin/status

error setting up request headers: failed to parse JSON response: json: cannot unmarshal object into Go value of type []plugin.OrgUser body={"message":"Unauthorized","traceID":""}

Grafana version is v11.3.1 and the on-call server version is v1.13.2

How do we reproduce it?

Enabled the On-Call plugin and click connect

Grafana OnCall Version

v1.13.2

Product Area

Helm/Kubernetes/Docker, Alert Flow & Configuration

Grafana OnCall Platform?

Kubernetes

User's Browser?

Chrome

Anything else to add?

No response

@bpedersen2
Copy link

This is #5100

@jrote1
Copy link
Author

jrote1 commented Nov 22, 2024

@bpedersen2 i'm not sure if this is related, I may be wrong. But I was having the issue that was described in the issue, but I applied the fixes in that latest comment and now i'm getting this new error

@bpedersen2
Copy link

make sure you have the following in your grafana.ini:

feature_toggles:
accessControlOnCall: false
enable: ...,externalServiceAccounts,... (any other features you may want)

and restarted your grafana instance.

@jrote1
Copy link
Author

jrote1 commented Nov 22, 2024

@bpedersen2 I already have both of these in place

@bpedersen2
Copy link

Do you happen to have more than one organization in your grafana instance? Then see
#5100 (comment)

@jrote1
Copy link
Author

jrote1 commented Nov 22, 2024

@bpedersen2 I only have one organisation in the grafana instance

@PovilasV1
Copy link

Having a similar issue:

curl https://$GRAFANA_AUTH@$GRAFANA_URL/api/plugins/grafana-oncall-app/resources/plugin/status
error setting up request headers: failed to parse JSON response: invalid character '<' looking for beginning of value body=<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>

Applied all of the suggestions from #5100, but still no luck. Issues started when upgraded from v11.2.0 to v11.3.1. Reverting back to v11.2.0 fixes it.
We also have only 1 organization in Grafana.

@jrote1 maybe you found anything to fix the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants