shakee93 / fonoapi

:telephone: FonoApi - Mobile Device Description API
https://fonoapi.freshpixl.com
MIT License
298 stars 63 forks source link

Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com #57

Open Nkvnl opened 5 years ago

Nkvnl commented 5 years ago

Hi @shakee93,

Im trying to get data using the following code;

> var express = require('express');
var app = express();
var fonoapi = require('./node_modules/fonoapi-nodejs');
fonoapi.token = '5051049096968bd19fd89e0d8a6aecd96817453df6134dc4';

fonoapi.getLatest(myCallback, 5, 'apple');
function myCallback(queryString, data) {
    console.log(data);
}

app.listen(process.env.PORT, process.env.IP, function() {
    console.log("web server starting...");
});

Resulting in the following Error:

{ status: 'error', message: 'Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com', innerException: null }

Any ideas about what the problem could be?

RobinDeBock commented 5 years ago

The api is partially offline, any generated tokens are unusable

RobinDeBock commented 5 years ago

Even old tokens are unusable. I tried mailing the webmaster, but the mail address became invalid this day (23/01/2019)

Nkvnl commented 5 years ago

That's unfortunate, thanks for the update.

salgua commented 5 years ago

Same problem...

rubencougil commented 5 years ago

ey, @shakee93 could you provide an update?

shakee93 commented 5 years ago

Sorry for the inconvenience !! server was due to higher resource usage.. ill be moving the service to another serve, will be backup soon !

rubencougil commented 5 years ago

good to know! thank you for the update @shakee93 !

nymbols commented 5 years ago

This issue should be closed as tokens are now working.

aeharake commented 5 years ago

still not working

{ "status": "error", "message": "Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com", "innerException": null }

BelRat commented 5 years ago

I have the same problem and get ""Invalid or Blocked Token". Any help on if I am doing something wrong would be appeciated, see below for details.

  1. I started with generating a token from https://fonoapi.freshpixl.com/token/generate : Successfully Acquired your Api Token a054a4e98f1c8ad85adecb931a7ea83b6711b74cf991967c

  2. Then I use the retrieved token as follows (I tried multiple tokens with the same result): C:>curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST -H 'Accept: application/json' -d 'token=a054a4e98f1c8ad85adecb931a7ea83b6711b74cf991967c&limit=5&device=A8' {"status":"error","message":"Invalid or Blocked Token. Generate a Token at fonoapi.freshpixl.com","innerException":null}curl: (6) Could not resolve host: application 'limit' is not recognized as an internal or external command, operable program or batch file. 'device' is not recognized as an internal or external command, operable program or batch file.

BelRat commented 5 years ago

Adding to my previous comment that I get the same result reagredless if I use a space or not in-between -XPOST, i.e.: C:>curl https://fonoapi.freshpixl.com/v1/getdevice -XPOST ... vs C:>curl https://fonoapi.freshpixl.com/v1/getdevice -X POST ...