Jump to content

Nations API issue


Dan77
 Share

Recommended Posts

I've been pulling the nations API into a google sheet for quite some time with no issues (https://politicsandwar.com/api/nations/).  All of a sudden it stopped working for me yesterday.

 

Error
SyntaxError: String contains control character

 

Is this a problem for anyone else?  Any idea how I can fix it?  Or has anyone got a method for pulling the data that they would like to share with me?

Link to comment
Share on other sites

  • Administrators

I'm not sure what the issue is. If we can figure that out, I can probably fix it (if it's an issue on my end.)

  • Upvote 1

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

  • Administrators

Has anything been changed because it always worked before?

 

If not, I'm wondering if maybe a new nation has been created with a character my script doesn't like?

 

Nope, I haven't changed any API stuff recently. My guess would be the latter.

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

Weird. One of my scripts ran two hours ago and I didn't get any errors.

 

I ran it through JSONLint and got this:

 

"Error: Parse error on line 29968:

...enia", "leader": "Francisco Griffin",
----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'"
 
"Francisco Griffin" has this weird space between his name. That is the problem.
  • Upvote 1

[22:37:51] <&Yosodog> Problem is, everyone is too busy deciding which top gun character they are that no decision has been made

 

BK in a nutshell

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.