Forum Discussion

dude95's avatar
dude95
Resolver I
5 years ago

Jira API pull - "DataFormat.Error: We found extra characters at the end of JSON input"

I've tried tons of examples off the internet, but still keep getting this DataFormat.Error. Any advice to finding the issue?

 

Does it have anything to do with paging data coming back? Is it the call going out? Wish the error messages were a bit more descriptive here.

 

 

let
    Auth_Key = "Basic " & Binary.ToText(Text.ToBinary("xxx:xxx"), 0),
    Source = Json.Document(Web.Contents("https://jira.xxx.com/rest/api/1/issue/MIA-8263", [Headers=[#"Content-Type"="application/json", Authorization="Auth_Key"]]))    
in
    Source

 

1 Reply

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    This could be the API did not return a properly formatted JSON.You can try using Fiddler or F12 of the browser to view the content actually sent by the API.