Title: Server returning Response Promise instead of JSON · Issue #159 · studycloud/studycloud · GitHub
Open Graph Title: Server returning Response Promise instead of JSON · Issue #159 · studycloud/studycloud
X Title: Server returning Response Promise instead of JSON · Issue #159 · studycloud/studycloud
Description: Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success callback has to take its argument, call...
Open Graph Description: Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success...
X Description: Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success...
Opengraph URL: https://github.com/studycloud/studycloud/issues/159
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Server returning Response Promise instead of JSON","articleBody":"Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success callback has to take its argument, call .json() on it, and call .then() on the result to do what it wants.\r\n\r\nThis should be a relatively simple thing to change (just do the same work in the get functions of Server), but working code assumes it works in this way.","author":{"url":"https://github.com/ciennG","@type":"Person","name":"ciennG"},"datePublished":"2019-10-13T03:00:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/159/studycloud/issues/159"}
| 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:c7dc101a-492d-fd1f-8d71-c74fac32ac9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB60:E9F42:468110:5E93AE:6977C71B |
| html-safe-nonce | cd072e620737db8bd925042687c03ebccf0a8a6d655c1842aac6b5ce6ccc501d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjYwOkU5RjQyOjQ2ODExMDo1RTkzQUU6Njk3N0M3MUIiLCJ2aXNpdG9yX2lkIjoiNDE4NTI4OTQ5Njc3NTM0NTk0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1c717365c2cf662e6cead78f02cca546696d5d96d1e7ae58467dda202bbdb6d0 |
| hovercard-subject-tag | issue:506265948 |
| 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/studycloud/studycloud/159/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aca42321ac4a3464fd7c1755c9f5cf79bc6b83d1cd5775e083e3635f2ed83371/studycloud/studycloud/issues/159 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aca42321ac4a3464fd7c1755c9f5cf79bc6b83d1cd5775e083e3635f2ed83371/studycloud/studycloud/issues/159 |
| og:image:alt | Currently, Server.js getResource() (and likely other functions) returns a Promise that evaluates to a Response instead of a JSON. This means that, to run a function of the desired JSON, the success... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ciennG |
| hostname | github.com |
| expected-hostname | github.com |
| None | 173f8c2eae2e017de550dd28a9ea88ad5c1e52c70df7ea05bcd820330b3b2fec |
| turbo-cache-control | no-preview |
| go-import | github.com/studycloud/studycloud git https://github.com/studycloud/studycloud.git |
| octolytics-dimension-user_id | 61662669 |
| octolytics-dimension-user_login | studycloud |
| octolytics-dimension-repository_id | 75028068 |
| octolytics-dimension-repository_nwo | studycloud/studycloud |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 75028068 |
| octolytics-dimension-repository_network_root_nwo | studycloud/studycloud |
| 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 | 7b19554cad55a536fac18eeedb416dd87c37b1f5 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width