Forum

Notifications
Clear all

Attempt to download returns Details: "We found extra characters at the end of JSON input."

9 Posts
2 Users
0 Reactions
842 Views
(@gprztiogmail-com)
Posts: 5
Active Member
Topic starter
 

Successfully downloaded https://services.swpc.noaa.gov/json/goes/primary/magnetometers-1-day.json for years, suddenly getting error message. Select Data on the ribbon>get data>from file>from json>enter the URl>enter. Entire message is: Unable to Connect, We encountered an error while trying to connect. Details: "We found extra characters at the end of JSON input." NOAA, the source says they made no recent changes, the link and data are good. 

 
Posted : 08/07/2021 1:42 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Hello Ben,

It works fine for me to load the data from this JSON file, see attached.

The M code.
let
Source = Json.Document(Web.Contents("https://services.swpc.noaa.gov/json/goes/primary/magnetometers-1-day.json")),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"time_tag", "satellite", "He", "Hp", "Hn", "total", "arcjet_flag"}, {"time_tag", "satellite", "He", "Hp", "Hn", "total", "arcjet_flag"})
in
#"Expanded Column1"

Br,
Anders

 
Posted : 08/07/2021 3:40 pm
(@gprztiogmail-com)
Posts: 5
Active Member
Topic starter
 

Thank you Anders, the copy of Excel installed here must be corrupt if you can download it. I will delete it and re-install. When I contacted Microsoft, their support agent did not have an Excel to test. 

 
Posted : 09/07/2021 11:15 am
(@gprztiogmail-com)
Posts: 5
Active Member
Topic starter
 

Well, delete and re-install did not work. Same error message. Something is interfering?

 
Posted : 09/07/2021 2:30 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Have you tried to load the data from a new Excel file?

 
Posted : 09/07/2021 5:27 pm
(@gprztiogmail-com)
Posts: 5
Active Member
Topic starter
 

The link is the only source. 

 
Posted : 09/07/2021 8:44 pm
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Sorry, probably some Swenglish from me in my previous question.

When I read ”delete and re-install” I assume you are still working in the same Excel file, have you tried to load the data in a new Excel file? Just to check if error is with your original file or not.

 
Posted : 10/07/2021 1:31 am
(@gprztiogmail-com)
Posts: 5
Active Member
Topic starter
 

Thanks, Anders. The entire Microsoft Office suite was deleted and re-installed. The same error reoccurred. I work alone so there is only one Excel installation to test. I thought it was a corrupt Excel, but something else is the problem. If you can download it in Sweden...mystery. 

 
Posted : 10/07/2021 11:10 am
Anders Sehlstedt
(@sehlsan)
Posts: 970
Prominent Member
 

Well, the error seems not to be in the JSON file, but perhaps in your Excel file. If you haven’t already, do try to import the JSON data in a new empty file. If you still get the same error then it is something strange going on.

 
Posted : 10/07/2021 4:08 pm
Share: