NATION

PASSWORD

Telegrams API problem

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Onionist Randosia
Chargé d'Affaires
 
Posts: 375
Founded: Mar 28, 2021
Left-wing Utopia

Telegrams API problem

Postby Onionist Randosia » Sun May 01, 2022 4:39 pm

I was just trying to run the nstg-web API for recruiting this morning, after a two-week break from running it, and I got this error message that I have never seen before:
Code: Select all
info: Evaluating Template Recipient Language string...
info: Continuous mode
info: Initially sending telegrams to the following nations: kutand_socscoky,new_manosan,woozzzie_shakie_shakie,caskbane,pyongjong,akinara,auruden,bismerick,thesweden,cobuscus,greater_solidity,scalathan
error: Failed to send telegram to kutand_socscoky.
error: { [Error: Request failed: API returned HTTP response code 403]
  responseMetadata:
   { _readableState:
      { objectMode: false,
        highWaterMark: 16384,
        buffer: [Object],
        length: 0,
        pipes: null,
        pipesCount: 0,
        flowing: true,
        ended: true,
        endEmitted: true,
        reading: false,
        sync: true,
        needReadable: false,
        emittedReadable: false,
        readableListening: false,
        resumeScheduled: false,
        destroyed: false,
        defaultEncoding: 'utf8',
        awaitDrain: 0,
        readingMore: false,
        decoder: null,
        encoding: null },
     readable: false,
     _events: { end: [Object], error: [Function], data: [Function] },
     _maxListeners: undefined,
     _mode: 'fetch',
     headers: { 'content-type': 'text/html; charset=utf-8' },
     rawHeaders: [ 'content-type', 'text/html; charset=utf-8' ],
     trailers: {},
     rawTrailers: [],
     _fetchResponse: {},
     url: 'https://www.nationstates.net/cgi-bin/api.cgi?userAgent=node-nsapi%200.1.15%20(maintained%20by%20Auralia%2C%20currently%20used%20by%20%22nstg-web%20(maintained%20by%20Auralia%2C%20currently%20used%20by%20%22Onionist%20Randosia%22)%22)&a=s[CENSORED API KEY STUFF]&to=kutand_socscoky',
     statusCode: 403,
     statusMessage: '' },
  responseText: '\n
Client Not Registered For API
Error: 403 Client Not Registered For API\n

The NationStates API Documentation\n' }


The 'Client Not Registered for API' bit was large and red. There is another person at my school who uses a recruitment API program for a different region, but that gives a different error message whenever we run our APIs at the same time. Can anyone tell me why I am getting this message and what I can do to fix it?
Last edited by Onionist Randosia on Sun May 01, 2022 6:01 pm, edited 1 time in total.
The People's Onionist Republic of Onionist Randosia
Call me OR or Randosia - they/them pronouns
Posts are OOC unless stated otherwise - posts do not represent official views of Aurora or InterLeft unless stated otherwise

Commissar of Foreign Affairs, Aurora
Former Deputy PM, PM and Minister of Defense of Asterya (now Aurora)
3x WA Delegate (among other things) of The Union of Great Onionist Nations, later Asterya, now Aurora
Founder, Administrator, past Chancellor and current Director of Defense, InterLeft
JEFF High Command
Astravica - Citizen, The Region That Has No Big Banks
Astravia - RPer, Distant Worlds
Gaviastan - Diplomacy Officer, Great Lakes Alliance, and GLA representative to the United Regions of Valeria
Sovetskiy Luk Navsegda!

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Sun May 01, 2022 4:54 pm

You were probably using an API key that belonged to a nation that ceased to exist. If we can't contact the keyholder when there is a problem, that key gets removed. I just cleaned those out.

If you are the designated recruiter for your region, you can request a new key.

User avatar
Onionist Randosia
Chargé d'Affaires
 
Posts: 375
Founded: Mar 28, 2021
Left-wing Utopia

Postby Onionist Randosia » Sun May 01, 2022 6:03 pm

Frisbeeteria wrote:You were probably using an API key that belonged to a nation that ceased to exist. If we can't contact the keyholder when there is a problem, that key gets removed. I just cleaned those out.

If you are the designated recruiter for your region, you can request a new key.

Oh ok that's probably it, as I believe the original nation which requested the regional key is CTE'd
I will request a new one
Thanks
The People's Onionist Republic of Onionist Randosia
Call me OR or Randosia - they/them pronouns
Posts are OOC unless stated otherwise - posts do not represent official views of Aurora or InterLeft unless stated otherwise

Commissar of Foreign Affairs, Aurora
Former Deputy PM, PM and Minister of Defense of Asterya (now Aurora)
3x WA Delegate (among other things) of The Union of Great Onionist Nations, later Asterya, now Aurora
Founder, Administrator, past Chancellor and current Director of Defense, InterLeft
JEFF High Command
Astravica - Citizen, The Region That Has No Big Banks
Astravia - RPer, Distant Worlds
Gaviastan - Diplomacy Officer, Great Lakes Alliance, and GLA representative to the United Regions of Valeria
Sovetskiy Luk Navsegda!


Return to Technical

Who is online

Users browsing this forum: 9003, Anarhchomonarchy, Barbartopia, Columbiqash, Der Weimar Republik, Iadul Sufletelor, Jinwoy, Krusavich, Micro Gettysburg, North American Imperial State, Pukana La, Tiami, Uvolla, Western Theram, Zazumo

Advertisement

Remove ads