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: patch-diff.githubusercontent.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:8aaeb784-8edb-af0e-f765-433700764441 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD18:1632B0:303EF0:405230:698E557C |
| html-safe-nonce | 7e378decdd8bc79f2799de5ee713e16416687b82aff6c20218e57c443369a851 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDE4OjE2MzJCMDozMDNFRjA6NDA1MjMwOjY5OEU1NTdDIiwidmlzaXRvcl9pZCI6IjY1NDQyMDUxOTM1Mjg4OTA3NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e27ff2b94b8e51d3a27b92139377e7f2bac100a7481e952dbab1f89459aa3a4 |
| 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 | 0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc |
| 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 | 9416d07f3607b074b276ccc81546278f89608a08 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width