Title: Fix for performing chunked upload by richmouritsen · Pull Request #154 · DropNet/DropNet · GitHub
Open Graph Title: Fix for performing chunked upload by richmouritsen · Pull Request #154 · DropNet/DropNet
X Title: Fix for performing chunked upload by richmouritsen · Pull Request #154 · DropNet/DropNet
Description: I was trying to use the chunked upload using the StartChunkedUpload, AppendChunkedUpload, and CommitChunkedUpload methods, but it wasn't working. I wasn't getting an exception on the initial StartChunkedUpload call, but the ChunkUpload object coming back was empty, which eventually led to a null reference exception. Using Fiddler, I looked at the request and found this call on the Create: PUT /1/chunked_upload?oauth_consumer_key={oauth_consumer_key}&oauth_nonce={oauth_nonce}&oauth_token={oauth_token}&oauth_timestamp={oauth_timestamp}&oauth_signature={oauth_signature}&oauth_signature_method={oauth_signature_method}&oauth_version={oauth_version} HTTP/1.1 which resulted in this response: {"error": "Invalid app key (consumer key). Check your app's configuration to make sure everything is correct."} I looked at the code and found that in both CreateChunkedUploadRequest and CreateAppendChunkedUploadRequest, several oauth parameters were being added to the request, but that they weren't being populated. It didn't look like these oauth parameters were present in other similar calls so I didn't think they were necessary. I ended up removing them and the chunked upload then worked. On create, my request looked like this: PUT /1/chunked_upload HTTP/1.1 And my response like this: {"expires": "Wed, 18 May 2016 21:14:19 +0000", "upload_id": "AAAAAAAAAdGk8g0SdUJBLQ", "offset": 4194304} I was then able to make an append request like this: PUT /1/chunked_upload?upload_id=AAAAAAAAAdGk8g0SdUJBLQ&offset=4194304 HTTP/1.1
Open Graph Description: I was trying to use the chunked upload using the StartChunkedUpload, AppendChunkedUpload, and CommitChunkedUpload methods, but it wasn't working. I wasn't getting an exception on the initia...
X Description: I was trying to use the chunked upload using the StartChunkedUpload, AppendChunkedUpload, and CommitChunkedUpload methods, but it wasn't working. I wasn't getting an exception on th...
Opengraph URL: https://github.com/DropNet/DropNet/pull/154
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:1c09f348-dcda-88bb-5187-15f966680505 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | BECE:1220C7:7A91:9112:697F6258 |
| html-safe-nonce | 4c4ee80a5d62f463e453c6968b174d48eb51e5920f71dfd2956cf64fdfae33d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUNFOjEyMjBDNzo3QTkxOjkxMTI6Njk3RjYyNTgiLCJ2aXNpdG9yX2lkIjoiNTA1MTIxOTU5NDQ0Njg1Njc5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 569194ddbdc37c309c8a7a955664e975bed614f12092d87abfa9b00de71abf48 |
| hovercard-subject-tag | pull_request:70408134 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/DropNet/DropNet/pull/154/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1235338?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1235338?s=400&v=4 |
| og:image:alt | I was trying to use the chunked upload using the StartChunkedUpload, AppendChunkedUpload, and CommitChunkedUpload methods, but it wasn't working. I wasn't getting an exception on the initia... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/DropNet/DropNet git https://github.com/DropNet/DropNet.git |
| octolytics-dimension-user_id | 7176748 |
| octolytics-dimension-user_login | DropNet |
| octolytics-dimension-repository_id | 678462 |
| octolytics-dimension-repository_nwo | DropNet/DropNet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 678462 |
| octolytics-dimension-repository_network_root_nwo | DropNet/DropNet |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width