Stream: IG creation
Topic: package-list.json Unexpected char '<'
John Moehrke (Nov 08 2021 at 20:42):
why does the IG builder find a "<" character in my package-list.json.... there is no such character in there. I presume it is complaining about something else, and this just happens to be the error message it is spitting out. It even seems to process this file fine.
Grahame Grieve (Nov 08 2021 at 20:51):
usually that means that the server returned an html error message when the IG publisher tried to access it
John Moehrke (Nov 08 2021 at 20:51):
which server?
Grahame Grieve (Nov 08 2021 at 20:54):
the ihe.net one, presumably
John Moehrke (Nov 08 2021 at 20:55):
it works for me
John Moehrke (Nov 08 2021 at 20:57):
two projects (PDQm, and PIXm), both similar package-list.json. one is fine (PDQm), the other complains (PIXm).
John Moehrke (Nov 08 2021 at 20:58):
https://github.com/IHE/ITI.PDQm
John Moehrke (Nov 08 2021 at 20:59):
https://github.com/IHE/ITI.PIXm
Grahame Grieve (Nov 08 2021 at 21:09):
so what's the exact error?
John Moehrke (Nov 08 2021 at 21:13):
Outcome of trying to fetch existing package-list.json: Error parsing JSON source: Unexpected char '<' in json stream at Line 1 (path=[null])
John Moehrke (Nov 08 2021 at 21:17):
I have checked for the new security vulnerability with unicode characters...
John Moehrke (Nov 08 2021 at 21:17):
no hidden xml code found on line 1.
Grahame Grieve (Nov 08 2021 at 21:58):
for which one?
John Moehrke (Nov 08 2021 at 21:59):
PDQm does not throw the error. PIXm does.
John Moehrke (Nov 08 2021 at 22:28):
same happens on my local machine as happens on the ci build. so it is not local machine specific
Grahame Grieve (Nov 09 2021 at 03:07):
it's because the java client won't follow a redirect from http to https. See how well this is documented: https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html#setFollowRedirects-boolean-
Grahame Grieve (Nov 09 2021 at 03:08):
anyway, fixed next release
Last updated: Apr 12 2022 at 19:14 UTC