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

"Unknown Error" and "Invalid StationId or gas station not found" #4

Open
joaopg opened this issue Jul 21, 2022 · 1 comment
Open

"Unknown Error" and "Invalid StationId or gas station not found" #4

joaopg opened this issue Jul 21, 2022 · 1 comment

Comments

@joaopg
Copy link

joaopg commented Jul 21, 2022

Hello,

When trying to add a station to the Integration I get the following errors:

image

Also everywhere is saying to use the Id to add the station but in the JSON there isn't an ID field but yes a Código field:

image

Congratulations on the idea and good luck.

Regards,

João Guerreiro

@netsoft-ruidias
Copy link
Owner

Hello

The problem here, is that you are using the value from Codigo but you should be using the value from the Id field.

{
     "Codigo": "L0473",
     "Nome": "Posto Galp Montijo-EQUILIBRIO & SUCESSO, LDA.",
     (...)
     "Id": 65024
},

So, for this specific station, you should use 65024 instead of L0473.

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