Open xbdmHQ opened 1 year ago
@realaravinth
My apologies, I seemed to have missed this issue somehow! Please tell me which version of libmedium you were trying to run. Build details can be found at /api/v1/meta/build
(example: https://libmedium.batsense.net/api/v1/meta/build).
If it is the latest version, then this line is panicking and crashing. That line shuld break only when the GraphQL API is misbehaving or the client GraphQL code is broken. I'm still able to read articiles on my instance, so this has to be an article-specific thing where an unexpected parameter is used in the GraphQL schema.
If the instance crashed when you tried to read an article, please share its link :)
My apologies, I seemed to have missed this issue somehow! Please tell me which version of libmedium you were trying to run. Build details can be found at
/api/v1/meta/build
(example: https://libmedium.batsense.net/api/v1/meta/build).If it is the latest version, then this line is panicking and crashing. That line shuld break only when the GraphQL API is misbehaving or the client GraphQL code is broken. I'm still able to read articiles on my instance, so this has to be an article-specific thing where an unexpected parameter is used in the GraphQL schema.
If the instance crashed when you tried to read an article, please share its link :)
I tested on the demo artictle:
@tylerneely/fear-and-loathing-in-lock-free-programming-7158b1cdd50c
I'm sorry, I'm unable to reproduce it on my end. I tried with tow different machines and IPs (one of them has a dirty IP, always trips CAPTCHAs) hoping to get blocked/denied service, but both of them went through. If this issue persists, please show me the output of the following command run from the machine where you are trying to deploy libmedium:
curl --location 'https://medium.com/_/graphql' \
--header 'Content-Type: application/json' \
--header 'Cookie: __cfruid=c42450750ac3d0536b1067f537242d2d46a6378e-1690668778; sid=1:+AL0c7GTXtMjhveT4p4LhZkDkd4UI2tfw23O+DulMo5IZk5wqeY879ism0QxqeQv; uid=lo_1d312983506b' \
--data '{"query":" query {\n post(id:\"7158b1cdd50c\") {\n title\n createdAt\n readingTime\n creator {\n id\n name\n imageId\n }\n content {\n bodyModel {\n paragraphs {\n text\n type\n href\n layout\n markups {\n title\n type\n href\n userId\n start\n end\n anchorType\n }\n iframe {\n mediaResource {\n id\n href\n iframeSrc\n iframeWidth\n iframeHeight\n }\n }\n metadata {\n id\n originalWidth\n originalHeight\n }\n }\n }\n }\n }\n }\n","variables":{}}'
It's the GraphQL request made to Medium API.
I'm off for the day, see you tomorrow :)