-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Trying Github.com API https://developer.github.com/v4/guides/forming-calls/#authenticating-with-graphql
On Grafana v6.7.3 (a04ef6cefc)
Getting
GraphQL Data Source plugin failed
Error: [$injector:unpr] Unknown provider: rProvider <- r http://errors.angularjs.org/1.6.9/$injector/unpr?p0=rProvider%20%3C-%20r
No idea what any of that means.
It occurs int he GUI when i chose your GraphQL Data Source, toggle Basic Auth, add the token and bearer in the Basic Auth Details, click Save & Test.
To replicate you can do exactly what i did with a fresh install like this;
docker-compose.yaml
version: '3.6'
x-defaults: &defaults
restart: unless-stopped
logging:
options:
max-size: "10m"
max-file: "3"
cap_drop:
- ALL
cap_add:
- DAC_OVERRIDE
services:
dashboard:
<<: *defaults
image: bitnami/grafana:6-debian-10@sha256:bda98953d622ff2c10ffd0bcbf3c71eb7eaf3222281c5ab2dc5e3b2d2cafcc3e
container_name: dashboard
build:
context: ./
dockerfile: docker/Dockerfile
user: "${UID}"
environment:
- GITHUB_PERSONAL_ACCESS_TOKEN=${GITHUB_PERSONAL_ACCESS_TOKEN}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD}
- GF_INSTALL_PLUGINS=${GF_INSTALL_PLUGINS}
ports:
- 3000:3000
volumes:
- ./grafana-persistence:/opt/bitnami/grafana/data/
- ./docker/grafana/conf/custom.ini:/opt/bitnami/grafana/conf/custom.ini
The .env like this
GF_SECURITY_ADMIN_PASSWORD=bitnami
GF_INSTALL_PLUGINS=graphql-datasource=https://github.com/fifemon/graphql-datasource/archive/v1.1.0.zip
UID=1000
Makefile if you need it, closes some gaps..
SHELL := /bin/bash
include .env
export $(shell sed 's/=.*//' .env)
.PHONY: help
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
prerequisites:
touch .env
mkdir -p docker/grafana/conf grafana-persistence
docker run -td --rm --name temp --entrypoint tail bitnami/grafana:6-debian-10@sha256:bda98953d622ff2c10ffd0bcbf3c71eb7eaf3222281c5ab2dc5e3b2d2cafcc3e -f /dev/null
docker cp temp:/opt/bitnami/grafana/conf/grafana.ini ./docker/grafana/conf/custom.ini
docker stop temp
target: prerequisites
build:
docker-compose build --no-cache
run:
docker-compose up -d --force-recreate
stop:
docker-compose down
backup:
rsync -a ./grafana-persistence ./grafana-persistence.bkp.$(date +%Y%m%d-%H.%M.%S)
Any help would be appreciated, happy to work on a fix myself and PR if i can get some guidance.
EDIT: same error with your API https://bahnql.herokuapp.com/graphql
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working