FHIR Chat · package-list.json Unexpected char '<' · IG creation

Stream: IG creation

Topic: package-list.json Unexpected char '<'


view this post on Zulip 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.

view this post on Zulip 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

view this post on Zulip John Moehrke (Nov 08 2021 at 20:51):

which server?

view this post on Zulip Grahame Grieve (Nov 08 2021 at 20:54):

the ihe.net one, presumably

view this post on Zulip John Moehrke (Nov 08 2021 at 20:55):

it works for me

view this post on Zulip 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).

view this post on Zulip John Moehrke (Nov 08 2021 at 20:58):

https://github.com/IHE/ITI.PDQm

view this post on Zulip John Moehrke (Nov 08 2021 at 20:59):

https://github.com/IHE/ITI.PIXm

view this post on Zulip Grahame Grieve (Nov 08 2021 at 21:09):

so what's the exact error?

view this post on Zulip 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])

view this post on Zulip John Moehrke (Nov 08 2021 at 21:17):

I have checked for the new security vulnerability with unicode characters...

view this post on Zulip John Moehrke (Nov 08 2021 at 21:17):

no hidden xml code found on line 1.

view this post on Zulip Grahame Grieve (Nov 08 2021 at 21:58):

for which one?

view this post on Zulip John Moehrke (Nov 08 2021 at 21:59):

PDQm does not throw the error. PIXm does.

view this post on Zulip 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

view this post on Zulip 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-

view this post on Zulip Grahame Grieve (Nov 09 2021 at 03:08):

anyway, fixed next release


Last updated: Apr 12 2022 at 19:14 UTC