Skip to main content
Question

Json API Error

  • February 16, 2023
  • 3 replies
  • 11 views

Forum|alt.badge.img+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

david_r
Evangelist
  • February 16, 2023

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


Forum|alt.badge.img+5
  • Author
  • February 16, 2023
david_r wrote:

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


david_r
Evangelist
  • February 17, 2023
asadamjad wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings