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

Cant add custom latex template Invalid API key #221

Closed
rtomik opened this issue Apr 24, 2020 · 3 comments
Closed

Cant add custom latex template Invalid API key #221

rtomik opened this issue Apr 24, 2020 · 3 comments

Comments

@rtomik
Copy link

rtomik commented Apr 24, 2020

Hello,
i try to add custom latex template to generate pdf and im getting error
Got Status 401 Unauthorized, message: {"message":"Invalid API key"}
link in grafana

http://1.1.1.1:8686/api/v5/report/yNbFTsHZk?apitoken=api key=?template=landscapeTemplate

without the ?template=landscapeTemplate it works fine and downloads the pdf. i have it in /usr/bin/templates/landscapeTemplate.text

@IzakMarais
Copy link
Owner

You are using URL query parameters incorrectly. To when using more than one parameter, they should be separated by & not by adding more ?. This is the way standard URLs in the browser also work .

@rtomik
Copy link
Author

rtomik commented May 4, 2020

oh ok there was no & at #50 is the /usr/bin/templates correct?
im getting error
2020/05/04 09:29:41 Called with template: templates/landscapeTemplate.tex
2020/05/04 09:29:41 Error reading template file: "open templates/landscapeTemplate.tex: no such file or directory"

@rtomik
Copy link
Author

rtomik commented May 6, 2020

nevermind got it working with #132

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