Question

Json API Error

  • 16 February 2023
  • 3 replies
  • 7 views

Badge +5

I'm getting errors while I extracting data from FME API

 

The Error is 

"A JSON syntax error was found at line 21, column 1691

Unexpected non-whitespace characters were found after the JSON text

UniversalReader -- readSchema resulted in 0 schema features being returned

"

 

API Link is 

40.76.139.235/fmerest/v3/transformations/jobs/id/238492/log?fmetoken=776f34b59676c6271de9b4735a0d13a8ac2acb0a

 


3 replies

Userlevel 4

The URL above downloads a job log file, it does not contain a JSON document. Is the link perhaps wrong?

Badge +5

The URL above downloads a job log file, it does not contain a JSON document. Is the link perhaps wrong?

No the link is correct.​ Yes you are right link download the log file is there any wat where I read the log file in fme

Userlevel 4

No the link is correct.​ Yes you are right link download the log file is there any wat where I read the log file in fme

You can use the text file reader to read the log: https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_ReadersWriters/textline/textline.htm

It'll return one feature per text line, unless you tell it to read the whole file into a single feature.

Reply