NATION

PASSWORD

"Not authorized to send this telegram template"

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Verate
Lobbyist
 
Posts: 13
Founded: Jun 22, 2020
Ex-Nation

"Not authorized to send this telegram template"

Postby Verate » Sun Feb 14, 2021 1:08 pm

I'm sending telegrams that need to be marked as recruiting for an organization. I created a template but it won't let me send it. I keep getting a message saying I'm not authorized to send it.

User avatar
Atheris
Negotiator
 
Posts: 6412
Founded: Oct 05, 2018
Ex-Nation

Postby Atheris » Sun Feb 14, 2021 1:10 pm

Haven't made a recruitment telegram/template in a while, but do you have an API key?
#FreeNSGRojava
Don't talk to Moderators. Don't associate with Moderators. Don't trust moderators. Moderators lie.
NEW VISAYAN ISLANDS SHOULD RESIGN! HOLD JANNIES ACCOUNTABLE!

User avatar
Verate
Lobbyist
 
Posts: 13
Founded: Jun 22, 2020
Ex-Nation

Postby Verate » Sun Feb 14, 2021 1:11 pm

Atheris wrote:Haven't made a recruitment telegram/template in a while, but do you have an API key?

I have an API key for my region recruitment, but this is different. This is the kind you send manually by copy-pasting. No API involved.

User avatar
Atheris
Negotiator
 
Posts: 6412
Founded: Oct 05, 2018
Ex-Nation

Postby Atheris » Sun Feb 14, 2021 1:13 pm

Verate wrote:
Atheris wrote:Haven't made a recruitment telegram/template in a while, but do you have an API key?

I have an API key for my region recruitment, but this is different. This is the kind you send manually by copy-pasting. No API involved.

Oh. Huh. I dunno, then. Do you have all the requirements for it?
#FreeNSGRojava
Don't talk to Moderators. Don't associate with Moderators. Don't trust moderators. Moderators lie.
NEW VISAYAN ISLANDS SHOULD RESIGN! HOLD JANNIES ACCOUNTABLE!

User avatar
Verate
Lobbyist
 
Posts: 13
Founded: Jun 22, 2020
Ex-Nation

Postby Verate » Sun Feb 14, 2021 1:18 pm

Atheris wrote:
Verate wrote:I have an API key for my region recruitment, but this is different. This is the kind you send manually by copy-pasting. No API involved.

Oh. Huh. I dunno, then. Do you have all the requirements for it?


I should. I can still send my old regional recruitment templates just fine.

I think it might have something to do with my template being marked for an organization rather than a region. That's the only difference between the templates I'm using.

User avatar
Unibot III
Negotiator
 
Posts: 7110
Founded: Mar 11, 2011
Democratic Socialists

Postby Unibot III » Sun Feb 14, 2021 3:29 pm

Verate wrote:I'm sending telegrams that need to be marked as recruiting for an organization. I created a template but it won't let me send it. I keep getting a message saying I'm not authorized to send it.


This has been an ongoing problem never addressed. Over the past few years, both I and August have both reported it previously and never received any response about it??

I’m not sure the Organization template has been a functional feature for years.
Last edited by Unibot III on Sun Feb 14, 2021 3:30 pm, edited 2 times in total.
[violet] wrote:I mean this in the best possible way,
but Unibot is not a typical NS player.
Milograd wrote:You're a caring, resolute lunatic
with the best of intentions.
Org. Join Date: 25-05-2008 | Former Delegate of TRR

Factbook // Collected works // Gameplay Alignment Test //
9 GA Res., 14 SC Res. // Headlines from Unibot // WASC HQ: A Guide

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✯ Duty is Eternal, Justice is Imminent: UDL

User avatar
Sedgistan
Site Director
 
Posts: 35471
Founded: Oct 20, 2006
Anarchy

Postby Sedgistan » Mon Feb 15, 2021 4:05 am

I've pinged the admins on our staff Discord channel re. this. I'm aware it's been reported previously.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Thu Feb 18, 2021 3:50 pm

I got the same problem too. When you attempt to use API recruitment for this, it will also give you a 403 error.
Last edited by The Python on Thu Feb 18, 2021 3:53 pm, edited 1 time in total.
See more information here.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Tue Mar 09, 2021 4:54 pm

Sorry, can you post a complete set of steps for me to reproduce the problem? I'm unclear on exactly who's doing what.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Tue Mar 09, 2021 5:56 pm

[violet] wrote:Sorry, can you post a complete set of steps for me to reproduce the problem? I'm unclear on exactly who's doing what.

First create a telegram template, works the same with API and non-API templates.
Then attempt to send it to anybody, through the API if using API template or manually if non-API
See more information here.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Mar 10, 2021 9:27 pm

Should be fixed now.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Wed Mar 10, 2021 11:21 pm

[violet] wrote:Should be fixed now.

Just tested, and it works! Thanks Violet!
See more information here.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Fri Mar 12, 2021 1:58 pm

Bug: It works for non-API recruitment (thanks), but I get error 403 when I want to send a non-regional recruitment telegram through API; I GHR'd because I assumed I needed a non-regional recruitment client key, but mods said that you should can use a regional recruitment key.
See more information here.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sat Mar 13, 2021 8:33 pm

The Python wrote:Bug: It works for non-API recruitment (thanks), but I get error 403 when I want to send a non-regional recruitment telegram through API; I GHR'd because I assumed I needed a non-regional recruitment client key, but mods said that you should can use a regional recruitment key.

Which 403 is it? I think it will be one of these:

403 Attempt to use Region API Key for Non-Regional Recruitment
403 Region mismatch between Telegram and Client API Key

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Sun Mar 14, 2021 11:49 am

[violet] wrote:
The Python wrote:Bug: It works for non-API recruitment (thanks), but I get error 403 when I want to send a non-regional recruitment telegram through API; I GHR'd because I assumed I needed a non-regional recruitment client key, but mods said that you should can use a regional recruitment key.

Which 403 is it? I think it will be one of these:

403 Attempt to use Region API Key for Non-Regional Recruitment
403 Region mismatch between Telegram and Client API Key


403 Attempt to use Region API Key for Non-Regional Recruitment
See more information here.

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

Postby Frisbeeteria » Sun Mar 14, 2021 4:18 pm

The Python wrote: I GHR'd because I assumed I needed a non-regional recruitment client key, but mods said that you should can use a regional recruitment key.

More accurately, we have no process for granting keys other than regional keys. If there needs to be a process for Non-Regional Recruitment or other API use, that needs to be added to mod tools.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Wed Mar 17, 2021 3:10 pm

/bump because it's now on the second page
See more information here.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Mar 17, 2021 7:15 pm

Hmm okay. So originally the idea was that there would be regional API keys for regional recruiting, and you should use a non-regional API key for non-region recruiting. But if we are issuing region-based keys for everything, I will remove the check.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Thu Mar 18, 2021 3:46 pm

[violet] wrote:Hmm okay. So originally the idea was that there would be regional API keys for regional recruiting, and you should use a non-regional API key for non-region recruiting. But if we are issuing region-based keys for everything, I will remove the check.

It's not giving that 403 error anymore, but now it's started with a different 403 error (403 Region no longer exists.).

UPDATE: checked if it was related to the key, so I sent a regional recruitment API tg to myself, and I got 200, so it has to do with the non-regional recruitment problem

EDIT: Not a mod or anythin, but in my (admittedly unqualified) opinion, the problem could be that it checks if the region exists but because organisational has no region, maybe there needs to be something so that it doesn't do the check for organisational recruitment
Last edited by The Python on Thu Mar 18, 2021 4:00 pm, edited 3 times in total.
See more information here.

User avatar
Vylixan
Chargé d'Affaires
 
Posts: 396
Founded: Mar 19, 2006
Psychotic Dictatorship

Postby Vylixan » Fri Mar 19, 2021 2:28 am

Related to this, when I looked into automating sending Nations TG's about cards I want to buy from them or their puppets, I also wondered what I should then use as region to request an API-key.
Since these are not recruitment TG's at all, and are only somewhat related to a region because at the moment it concernsl The Pacific cards, and it's not guaranteed it will stay that way.
People gave the advice to just use my puppet storage region, but that seemed disingenuous somehow.
I never got further then some research into this, but what would the advised method of automating the sending of TG's be when the purpose is not recruiting for a region?

To me, this seems to be close to what The Python is doing.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Fri Mar 19, 2021 11:35 am

Vylixan wrote:Related to this, when I looked into automating sending Nations TG's about cards I want to buy from them or their puppets, I also wondered what I should then use as region to request an API-key.
Since these are not recruitment TG's at all, and are only somewhat related to a region because at the moment it concernsl The Pacific cards, and it's not guaranteed it will stay that way.
People gave the advice to just use my puppet storage region, but that seemed disingenuous somehow.
I never got further then some research into this, but what would the advised method of automating the sending of TG's be when the purpose is not recruiting for a region?

To me, this seems to be close to what The Python is doing.

If you're automating telegrams that recruit to an organisation (usually off-site) then you would use non-regional recruitment. Templates for these can easily be used for manual recruitment (don't know about stamps but probably will also work) but is extremely buggy if you use the API.

You can also use the API or non-API to send telegrams that aren't recruitment, it even has a lower ratelimit.

You can send non-recruitment telegrams with a regional client key, it's only buggy when you try to send non-regional recruitment.
Last edited by The Python on Fri Mar 19, 2021 11:52 am, edited 1 time in total.
See more information here.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sun Mar 21, 2021 3:38 pm

Vylixan wrote:Related to this, when I looked into automating sending Nations TG's about cards I want to buy from them or their puppets, I also wondered what I should then use as region to request an API-key.
Since these are not recruitment TG's at all, and are only somewhat related to a region because at the moment it concernsl The Pacific cards, and it's not guaranteed it will stay that way.
People gave the advice to just use my puppet storage region, but that seemed disingenuous somehow.
I never got further then some research into this, but what would the advised method of automating the sending of TG's be when the purpose is not recruiting for a region?

To me, this seems to be close to what The Python is doing.

Yeah. When I created the system, the intent was that people would get a region-based API key for region recruiting, and a non-region-based API key for non-region-based recruiting. However, I understand that mods have found it simpler to require all API keys be region-based. So I think we should probably continue with that, and I will dismantle the old checks.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Sun Mar 21, 2021 5:17 pm

[violet] wrote:
Vylixan wrote:Related to this, when I looked into automating sending Nations TG's about cards I want to buy from them or their puppets, I also wondered what I should then use as region to request an API-key.
Since these are not recruitment TG's at all, and are only somewhat related to a region because at the moment it concernsl The Pacific cards, and it's not guaranteed it will stay that way.
People gave the advice to just use my puppet storage region, but that seemed disingenuous somehow.
I never got further then some research into this, but what would the advised method of automating the sending of TG's be when the purpose is not recruiting for a region?

To me, this seems to be close to what The Python is doing.

Yeah. When I created the system, the intent was that people would get a region-based API key for region recruiting, and a non-region-based API key for non-region-based recruiting. However, I understand that mods have found it simpler to require all API keys be region-based. So I think we should probably continue with that, and I will dismantle the old checks.

Hmm. I tried (again) and I'm still getting "403 Region No Longer Exists"
See more information here.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Sun Mar 28, 2021 11:19 am

Bump?
See more information here.

User avatar
The Python
Diplomat
 
Posts: 986
Founded: Jul 24, 2020
Liberal Democratic Socialists

Postby The Python » Wed Mar 31, 2021 4:07 pm

Bumpity bump
See more information here.

Next

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Aelyria, Ariesee, Battadia, Cambany, Doughworld, Gegia, James R Kennedy, Knothole and Brunswick, Mestovakia, Patriums, Roxium, Shattered Cascadia, Verderiesdre

Advertisement

Remove ads