Skip to content
TORNLIFE More

[API] Error code 4 superceded by error code 16

Started by Stiny [992186] on in Bugs & Issues.

1 replies · 9 views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 2 / 2 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
2
Discussion span
→
People posting
2
Likes on archived posts
0
Posts by staff, officers and moderators
1
Authority score
53 / 100
Historical score
24 / 100
Story score
25 / 100
Engagement score
24 / 100
Stiny [992186]
Currently error code 16 is being used in place of error code 4.
4 => Wrong fields : Requesting incorrect selection fields.

Previously when requesting a selection that did not exist you would receive error code 4.
Now if you query a non-existent lookup you get error code 16 back.
For example the following request yield error code 16: https://api.torn.com/torn/?selections=asdf&key=

Expectation: When querying for non-existent lookups error code 4 should be returned.

This might be tangentially related to this thread: https://www.torn.com/forums.php#/p=threads&f=19&t=16248808&b=0&a=0

Mentions: Weird API permission error codes