-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CURLRequest - supplied argument is not a valid File-Handle resource #Windows x64 #2202
Comments
I fixed first part, simple by changing condition but anyway after allowing debug it will throw this error: CRITICAL - 2019-09-10 07:52:14 --> curl_setopt_array(): cannot represent a stream of type Output as a STDIO FILE* |
You can try this fix #2204 |
Sorry didn't see your pull request :/ I did it a bit another way. |
Well... from what I see, you removed the |
Yeah, I just realize it :) You are right... |
@xbotkaj this should be fixed by #2168 Please, give it a try if you find a moment. |
Sorry I was few days off... I will look into it more in the next days. |
Update to this issue. It is confirmed windows related problem. Uploaded to LINUX server and it works fine with I tried to update CURL program in XAMPP without change. Maybe is problem in PHP curl extension for windows. Similar issue in original guzzle -> guzzle/guzzle#1413 |
I am experiencing this on Ubuntu 18.04.3 running php7 and apache2 |
Can you please write specific php build and full version of Apache? Maybe we can track it down. If it is possible please check curl extension version. |
Finally, I had time to get my hands dirty with a windows machine. I was able to reproduce this problem and also I have a possible solution. Tested on machines/environments:
|
@michalsn Is the problem that |
@MGatner I couldn't find much about From what I understand It would be nice if someone could check if that referenced PR solves the problem in his case. Also - any other suggestions/ideas will be appreciated. |
I understand the solution, and I agree with you - I was just noting that |
Yes, I definitely agree with you that using |
I can live with this solution for now, though I agree it doesn't feel perfect. As long as there's a note in the docs about this caveat I think we can close it out and get this feature working for people again. Thanks for your work on this @michalsn |
Describe the bug
Using CURLReqguest class produce error:
CRITICAL - 2019-09-09 21:04:32 --> curl_setopt_array(): supplied argument is not a valid File-Handle resource
CodeIgniter 4 version
CI4 - RC1
Affected module(s)
CURLRequest
Expected behaviour, and steps to reproduce if appropriate
Any attempt where is not set debug option will produce this error since Class initialize $config['debug'] = false and later check if via isset() and not via standard condition (true/false) directly from the option so every time this will pass, and it will pass empty option to CURL options that will produce error.
Context
The text was updated successfully, but these errors were encountered: