fonoapi icon indicating copy to clipboard operation
fonoapi copied to clipboard

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

Open Nkvnl opened this issue 7 years ago • 12 comments

Nkvnl avatar Jan 23 '19 21:01 Nkvnl

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?

Nkvnl avatar Jan 23 '19 21:01 Nkvnl

The api is partially offline, any generated tokens are unusable

RobinDeBock avatar Jan 23 '19 22:01 RobinDeBock

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

RobinDeBock avatar Jan 23 '19 22:01 RobinDeBock

That's unfortunate, thanks for the update.

Nkvnl avatar Jan 24 '19 11:01 Nkvnl

Same problem...

salgua avatar Jan 24 '19 16:01 salgua

ey, @shakee93 could you provide an update?

rubencougil avatar Jan 24 '19 18:01 rubencougil

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

shakee93 avatar Jan 24 '19 20:01 shakee93

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

rubencougil avatar Jan 24 '19 20:01 rubencougil

This issue should be closed as tokens are now working.

nymbols avatar Feb 28 '19 21:02 nymbols

still not working

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

aeharake avatar Mar 13 '19 08:03 aeharake

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 avatar Jun 02 '19 14:06 BelRat

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 ...

BelRat avatar Jun 02 '19 14:06 BelRat