oncall icon indicating copy to clipboard operation
oncall copied to clipboard

Unauthorized error when connecting

Open jrote1 opened this issue 1 year ago • 8 comments

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

jrote1 avatar Nov 21 '24 11:11 jrote1

This is #5100

bpedersen2 avatar Nov 22 '24 08:11 bpedersen2

@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

jrote1 avatar Nov 22 '24 10:11 jrote1

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.

bpedersen2 avatar Nov 22 '24 10:11 bpedersen2

@bpedersen2 I already have both of these in place

jrote1 avatar Nov 22 '24 11:11 jrote1

Do you happen to have more than one organization in your grafana instance? Then see https://github.com/grafana/oncall/issues/5100#issuecomment-2386949587

bpedersen2 avatar Nov 22 '24 11:11 bpedersen2

@bpedersen2 I only have one organisation in the grafana instance

jrote1 avatar Nov 22 '24 13:11 jrote1

@jrote1 were you able to get it working?

vaibhav-dpdzero avatar Oct 13 '25 12:10 vaibhav-dpdzero

Also stuck with the same issue.

antontroskie avatar Oct 27 '25 14:10 antontroskie