{"action":"created","issue":{"url":"https://api.github.com/repos/cwhite92/b2-sdk-php/issues/2","repository_url":"https://api.github.com/repos/cwhite92/b2-sdk-php","labels_url":"https://api.github.com/repos/cwhite92/b2-sdk-php/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/cwhite92/b2-sdk-php/issues/2/comments","events_url":"https://api.github.com/repos/cwhite92/b2-sdk-php/issues/2/events","html_url":"https://github.com/cwhite92/b2-sdk-php/issues/2","id":134957650,"number":2,"title":"Error uploading","user":{"login":"jpmurray","id":1550428,"avatar_url":"https://avatars.githubusercontent.com/u/1550428?v=3","gravatar_id":"","url":"https://api.github.com/users/jpmurray","html_url":"https://github.com/jpmurray","followers_url":"https://api.github.com/users/jpmurray/followers","following_url":"https://api.github.com/users/jpmurray/following{/other_user}","gists_url":"https://api.github.com/users/jpmurray/gists{/gist_id}","starred_url":"https://api.github.com/users/jpmurray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpmurray/subscriptions","organizations_url":"https://api.github.com/users/jpmurray/orgs","repos_url":"https://api.github.com/users/jpmurray/repos","events_url":"https://api.github.com/users/jpmurray/events{/privacy}","received_events_url":"https://api.github.com/users/jpmurray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-19T19:54:02Z","updated_at":"2016-02-21T19:59:12Z","closed_at":null,"body":"Hello,\r\n\r\nTrying to upload like so \r\n````\r\n$file = $client->upload([\r\n            'BucketId' => $bucketId,\r\n            'BucketName' => $bucketName,\r\n            'FileName' => $filename,\r\n            'Body' => $file2Send\r\n        ]);\r\n```\r\n results in this exception: `Received error from B2: error reading uploaded data`.\r\n\r\nI tought it was on their end, so I emailed them but it seems that they're throwing the ball back at us, so I tought I should post it to see if it was of any help! :)\r\n\r\n> Did you ensure that you have a vaild upload token?\r\n\r\n> If the HTTP return status is anything other than 200, the caller must not upload to this URL again. Instead the caller MUST call b2_get_upload_url to get a new uploadUrl and new authorizationToken. The reason for this is that the individual storage pod you are uploading into may be full of data and thus will never accept any more data for now, or it has crashed, or has been placed into maintenance and will not accept data, etc. No matter what the reason, you must use b2_get_upload_url to get a new uploadUrl and new authorizationToken in order to retry the upload."},"comment":{"url":"https://api.github.com/repos/cwhite92/b2-sdk-php/issues/comments/186898372","html_url":"https://github.com/cwhite92/b2-sdk-php/issues/2#issuecomment-186898372","issue_url":"https://api.github.com/repos/cwhite92/b2-sdk-php/issues/2","id":186898372,"user":{"login":"jpmurray","id":1550428,"avatar_url":"https://avatars.githubusercontent.com/u/1550428?v=3","gravatar_id":"","url":"https://api.github.com/users/jpmurray","html_url":"https://github.com/jpmurray","followers_url":"https://api.github.com/users/jpmurray/followers","following_url":"https://api.github.com/users/jpmurray/following{/other_user}","gists_url":"https://api.github.com/users/jpmurray/gists{/gist_id}","starred_url":"https://api.github.com/users/jpmurray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpmurray/subscriptions","organizations_url":"https://api.github.com/users/jpmurray/orgs","repos_url":"https://api.github.com/users/jpmurray/repos","events_url":"https://api.github.com/users/jpmurray/events{/privacy}","received_events_url":"https://api.github.com/users/jpmurray/received_events","type":"User","site_admin":false},"created_at":"2016-02-21T19:59:12Z","updated_at":"2016-02-21T19:59:12Z","body":"It's a long shot, because I would think I'd see another error, but maybe the transaction takes too long, something time out? "}}