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
Spokesperson
 
Posts: 137
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
3x and longest-serving WA Delegate of The Union of Great Onionist Nations (check us out!)
Founder and Administrator of InterLeft (check us out if you want your region to join a leftist alliance!)
Pro: Socialism (especially ecosocialism), Onionism, civil rights, direct democracy, environmentalism, equality, LGBT+ rights, the Ukrainian people (not the government), internationalism, avian personhood, choice (abortion), AI personhood/planning, etc
Anti: Capitalism, imperialism, fascism, religious bigotry, bigotry in general, homophobia, the USA, Russian imperialism, corporations, globalism, etc
Sovetskiy Luk Navsegda!

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 26594
Founded: Dec 16, 2003
Anarchy

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
Spokesperson
 
Posts: 137
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
3x and longest-serving WA Delegate of The Union of Great Onionist Nations (check us out!)
Founder and Administrator of InterLeft (check us out if you want your region to join a leftist alliance!)
Pro: Socialism (especially ecosocialism), Onionism, civil rights, direct democracy, environmentalism, equality, LGBT+ rights, the Ukrainian people (not the government), internationalism, avian personhood, choice (abortion), AI personhood/planning, etc
Anti: Capitalism, imperialism, fascism, religious bigotry, bigotry in general, homophobia, the USA, Russian imperialism, corporations, globalism, etc
Sovetskiy Luk Navsegda!


Return to Technical

Who is online

Users browsing this forum: Angvar, Araznan, Densaner, Ferrill, The Confederate States of America

Advertisement

Remove ads