I recently moved to a new scaleaway drop for my webserver.running nginx and php5 everything runs great except when sing the API to upload images to my imghost. All my settings are the same including the API key. Here are the error code I get when attemoting to upload with API
I have been over everything I can think of for a solution. I have increased timeouts, double checked my hostnames and their response. I can not think of anything else to check. any help is greatly appreciated.
I normally uplaod using a bash script that has run without incident for 2+ years.
Code:
FROM Imagehost error.log
[error] 4064#0: *12611 FastCGI sent in stderr: "PHP message: file_get_contents: can't fetch target URL" while reading response header from upstream, client: 108.162.229.130, server: imagehost.com, request: "GET /api/1/upload/?key=XXXXXXXXXXXXXXXXXXXXXXXXXX&source=http://uploading.server/XXXXXXXXXXXXXXXXX.jpg&format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "hostname.com"
Code:
FROM UPLOADING SERVER:: response code
{"status_code":400,"error":{"message":"file_get_contents: can't fetch target URL","code":202,"context":"CHV\\UploadException"},"status_txt":"Bad Request"}
I have been over everything I can think of for a solution. I have increased timeouts, double checked my hostnames and their response. I can not think of anything else to check. any help is greatly appreciated.
I normally uplaod using a bash script that has run without incident for 2+ years.