Skip to content
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

cannot represent a stream of type Output as a STDIO FILE* #10

Open
karindpowell opened this issue Dec 8, 2016 · 1 comment
Open

cannot represent a stream of type Output as a STDIO FILE* #10

karindpowell opened this issue Dec 8, 2016 · 1 comment

Comments

@karindpowell
Copy link

* sigh *

[DEBUG] HTTP Request body ~BEGIN~ {"firstName":"Jennifer","lastName":"Smith","email":"[email protected]","phone":"7188675309"} ~END~ Warning: curl_setopt(): cannot represent a stream of type Output as a STDIO FILE* in C:\inetpub\wwwroot\assets\dwolla\dwollaswagger\lib\ApiClient.php on line 276

@ogomandco
Copy link

ogomandco commented May 8, 2018

From reading the code, it appears this is caused by DwollaSwagger's ApiClient when debugging is turned on. It attempts to turn on debugging for cURL using curl_setopt($curl, CURLOPT_STDERR, fopen(Configuration::$debug_file, 'a'));. Configuration::$debug_file defaults to php://output, hence the exception.
Setting a value for Configuration::$debug_file should resolve this for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants