Title: Cannot successfully run queries through SmartAPI editor or registration page · Issue #187 · SmartAPI/smartAPI · GitHub
Open Graph Title: Cannot successfully run queries through SmartAPI editor or registration page · Issue #187 · SmartAPI/smartAPI
X Title: Cannot successfully run queries through SmartAPI editor or registration page · Issue #187 · SmartAPI/smartAPI
Description: This is not urgent. For CTD API (just registered https://smart-api.info/registry?q=0212611d1c670f9107baf00b77f0889a), when I "try an example" query, I get TypeError: NetworkError when attempting to fetch resource. This also happens if I ...
Open Graph Description: This is not urgent. For CTD API (just registered https://smart-api.info/registry?q=0212611d1c670f9107baf00b77f0889a), when I "try an example" query, I get TypeError: NetworkError when attempting to...
X Description: This is not urgent. For CTD API (just registered https://smart-api.info/registry?q=0212611d1c670f9107baf00b77f0889a), when I "try an example" query, I get TypeError: NetworkError when att...
Opengraph URL: https://github.com/SmartAPI/smartAPI/issues/187
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot successfully run queries through SmartAPI editor or registration page","articleBody":"This is not urgent. \r\n\r\nFor CTD API (just registered https://smart-api.info/registry?q=0212611d1c670f9107baf00b77f0889a), when I \"try an example\" query, I get `TypeError: NetworkError when attempting to fetch resource.` This also happens if I copy the SmartAPI yaml into the [Editor](https://smart-api.info/editor). \r\n\r\nHowever, the uptime-checking with those same example values seems to be successful. I can run the same query successfully in Postman, the browser, and through BTE (testing on a local instance). With the browser, I get prompted to download the response as a file. \r\n\r\nI'm wondering if this is related to the setup of the SmartAPI Editor/UI (references: https://github.com/swagger-api/swagger-editor/issues/1861 and https://github.com/swagger-api/swagger-ui/issues/5750).\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eOther notes I took\u003c/summary\u003e\r\n\r\n* I think the CTD API is returning responses as files and Postman is unpacking / displaying those files. I therefore tried to represent this [in the endpoint spec](https://github.com/NCATS-Tangerine/translator-api-registry/commit/d60f0e1aa939bb3c538cf0ae08328b7ce7d69df3) using this [OpenAPI reference](https://swagger.io/docs/specification/describing-responses/#response-that-returns-a-file) and [these](https://swagger.io/docs/specification/media-types/) [links](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types) on [media-types](https://stackoverflow.com/a/49551778).\r\n* I don't know whether this behavior can be changed by providing different headers in the request\r\n* I notice response-headers that I'm not used to (see screenshot below). I'm not sure how to add them to the endpoint spec, and whether that will help. \r\n\r\n\r\n\u003c/details\u003e","author":{"url":"https://github.com/colleenXu","@type":"Person","name":"colleenXu"},"datePublished":"2023-03-14T06:33:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/187/smartAPI/issues/187"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:661379ad-6098-6244-a7b5-5b340e95397f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA88:1176D6:3C4270:4E5656:698E706E |
| html-safe-nonce | 4591f203e61716be73e2521068547c5e81d0e24880552085c8b6b833d6c2baa7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTg4OjExNzZENjozQzQyNzA6NEU1NjU2OjY5OEU3MDZFIiwidmlzaXRvcl9pZCI6IjYxNjk1OTYzNDYzODA0ODA2MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7990156b1f56f4a991666e75f07bd52b2012266acdff49484b15e7ea3a6a0f39 |
| hovercard-subject-tag | issue:1622821202 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SmartAPI/smartAPI/187/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f70d16eb4d30f88b503ca76455fc11915b9ea7d11d043aafb4072cfedd339752/SmartAPI/smartAPI/issues/187 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f70d16eb4d30f88b503ca76455fc11915b9ea7d11d043aafb4072cfedd339752/SmartAPI/smartAPI/issues/187 |
| og:image:alt | This is not urgent. For CTD API (just registered https://smart-api.info/registry?q=0212611d1c670f9107baf00b77f0889a), when I "try an example" query, I get TypeError: NetworkError when attempting to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | colleenXu |
| hostname | github.com |
| expected-hostname | github.com |
| None | f86603f0b4e9df9a462725324a8c84c98fc50866bdb6ae8ff026fabe56a60c57 |
| turbo-cache-control | no-preview |
| go-import | github.com/SmartAPI/smartAPI git https://github.com/SmartAPI/smartAPI.git |
| octolytics-dimension-user_id | 24528940 |
| octolytics-dimension-user_login | SmartAPI |
| octolytics-dimension-repository_id | 35257642 |
| octolytics-dimension-repository_nwo | SmartAPI/smartAPI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35257642 |
| octolytics-dimension-repository_network_root_nwo | SmartAPI/smartAPI |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7eb8835f5978c5aa7a64336b39e0774a93a9a196 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width