asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
544 stars 152 forks source link

Hack in order to fix 302 error code drop by Google API :disappointed_… #75

Closed Remiii closed 8 years ago

Remiii commented 9 years ago

Sometime Google return bad error code... It's not pretty but cool to retry the query! :grimacing:

Issue in relation with this topics: https://github.com/asimlqt/php-google-spreadsheet-client/issues/31

asimlqt commented 8 years ago

@Remiii Thanks for your PR, quite a few other people have been experiencing issues with unexpected responses from Google. I'm still trying to find a way to reproduce this error myself so I can add a fix for it.

This solution of yours is definitely one way around it but unfortunately I can't accept this PR, it's too generic. If a user sends a bad request (4XX error code) then this code will try to send it again (10 times).