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

404 Error #154

Open
chrystianfarias opened this issue Jun 14, 2022 · 3 comments
Open

404 Error #154

chrystianfarias opened this issue Jun 14, 2022 · 3 comments

Comments

@chrystianfarias
Copy link

Any plate queried returns the not found (404) error. Sinesp-api still works today?

<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.14.1</center>
</body>
</html>

undefined:1
<html>
^

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at request (C:\Users\Farias\Projetos\sharkbot\node_modules\sinesp-api\index.js:80:21)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async get (C:\Users\Farias\Projetos\sharkbot\test.js:4:19)
const sinespApi = require('sinesp-api');

const get = async () => {
   let vehicle = await sinespApi.search('GHX2G27');
   console.log(vehicle);
}
get();
@rhanything
Copy link

Same issue here

Any plate queried returns the not found (404) error. Sinesp-api still works today?

<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.14.1</center>
</body>
</html>

undefined:1
<html>
^

SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at request (C:\Users\Farias\Projetos\sharkbot\node_modules\sinesp-api\index.js:80:21)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async get (C:\Users\Farias\Projetos\sharkbot\test.js:4:19)
const sinespApi = require('sinesp-api');

const get = async () => {
   let vehicle = await sinespApi.search('GHX2G27');
   console.log(vehicle);
}
get();

@fabmont
Copy link

fabmont commented Jan 26, 2023

I'm not sure exactly where this lib is retrieving the plate data, but a lot of barriers popped up.
I know that the official API from Sinesp was updated and now it requires auth through the SSO by gov.br.

I have a PR opened on BrasilAPI repo to implement plate search that are paused in the moment due those challenges. If you guys wanna take a look, it would be great to centralize all the inputs and thoughts that we could bring up.

@GuiiSantos
Copy link

Sinesp-api still works today?

fabmont

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

4 participants