Comments (8)
Should be fixed in next release.
Thanks for reporting @IvorNL and for the data to fix the bug @peter279k.
from php-imgur-api-client.
@j0k3r , my error response
JSON is as follows:
array(3) {
'data' =>
array(3) {
'error' =>
array(4) {
'code' =>
int(429)
'message' =>
string(56) "You are uploading too fast. Please wait 59 more minutes."
'type' =>
string(14) "ImgurException"
'exception' =>
array(0) {
...
}
}
'request' =>
string(13) "/3/image.json"
'method' =>
string(4) "POST"
}
'success' =>
bool(false)
'status' =>
int(400)
}
from php-imgur-api-client.
What could be an option for you?
Creating a custom exception for the uploading too fast?
from php-imgur-api-client.
Yes, that would be best (i now had to debug the code to find out the exact error)
from php-imgur-api-client.
When response is 429, $responseData['data']['error'] is an array and line 74 produces Notice: Array to string conversion.
from php-imgur-api-client.
It looks like the $responseData['data']['error']
will be the array when response is 429
.
Perhaps we have to create the condition for response 429
and try to convert the array to string before merging strings.
from php-imgur-api-client.
If someone can dump the $responseData
and provide it here when response is 429 I'll implement a fix
from php-imgur-api-client.
Here is the formatted JSON response:
{
"data": {
"error": {
"code": 429,
"message": "You are uploading too fast. Please wait 57 more minutes.",
"type": "ImgurException",
"exception": []
},
"request": "\/3\/image.json",
"method": "POST"
},
"success": false,
"status": 400
}
from php-imgur-api-client.
Related Issues (17)
- Class 'Imgur\Auth\AuthException' not found in OAuth2.php
- Upload not working HOT 2
- Update to Guzzle 6 HOT 4
- Error exception 'Undefined index: request' when invoking to upload image HOT 1
- Add support for "token" as authorization response type HOT 3
- OAuth2.php can't get access_token
- Unable to get local issuer certificate HOT 2
- Image uploading API with file should be multipart/form-data header
- Image upload POST request removes multipart/form-data parameters
- Not returning images when is an album HOT 4
- Add support for "token" as authorization response type HOT 1
- Problem with submitToGallery($pic['id'],$data) HOT 1
- Example of use livewire 3
- Check if ID is image or album? HOT 4
- getGifv() for images? HOT 1
- Comment model need updated. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-imgur-api-client.