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

[BUG]: Downloading invoice throgh Rest API not working #1829

Open
abbasatayee opened this issue Mar 29, 2024 · 3 comments
Open

[BUG]: Downloading invoice throgh Rest API not working #1829

abbasatayee opened this issue Mar 29, 2024 · 3 comments

Comments

@abbasatayee
Copy link

abbasatayee commented Mar 29, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Download an invoice using javascript client and it gives you a file_url that does not work (but if you try to download the pdf using Graphql API from front-end it works)
  2. click on the file url (it sends Document not found)

Expected behavior
it should be able to download the file using rest api

Screenshots
image

Version

  • Lago: v1.0.0
@jdenquin
Copy link
Contributor

jdenquin commented Apr 3, 2024

URL is the same on both api and GraphQL side, has your javascript environment access to API?

@abbasatayee
Copy link
Author

URL is the same on both api and GraphQL side, has your javascript environment access to API?

yes it has access to javascript environment. I have checked both URL's looks same but whenever I get file_url using rest api its not working and with the dashboard one that is using graphql api working perfectly.

@jdenquin
Copy link
Contributor

how do you download the file with the api? if it works with the UI, it should work with the api too, it's basically the same file

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