Skip to content

set option <30120> failed: <A libcurl function was given a bad argument> #2175

@cnbleu

Description

@cnbleu

Hey all,

There is an error message ext\src\http\client\curl\http_operation_curl.cc:548 CURL, set option <30120> failed: <A libcurl function was given a bad argument> while running the example_otlp_http example with Win32 on my Windows 10. I have already debug it and found that after add these follow codes, it works well.

    #ifdef WIN32
    rc = SetCurlLongOption(CURLOPT_POSTFIELDSIZE, req_size);
    #else
    rc = SetCurlLongOption(CURLOPT_POSTFIELDSIZE_LARGE, req_size);
    #endif

It should be a 32-bit compatibility problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions