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

PUT Request Error: necessary data rewind wasn't possible #72

Open
martindines opened this issue Jun 10, 2022 · 0 comments
Open

PUT Request Error: necessary data rewind wasn't possible #72

martindines opened this issue Jun 10, 2022 · 0 comments

Comments

@martindines
Copy link

martindines commented Jun 10, 2022

Hi guys

I am using REST In Pawn to relay game data to a HTTP Server and while it works flawlessly 99% of the time, I have recorded an error that I have been struggling to diagnose: necessary data rewind wasn't possible

The error occurs infrequently and I have not been able to recreate. I believe it is connection related as the same data can be successfully sent at a later time. The PUT request is not received by the HTTP Server.

I am creating a standard PUT request using the following pseudo code:

HTTPRequest request = new HTTPRequest(url);

JSONObject payload = new JSONObject();
payload.SetInt("state", 1);

DataPack pack = new DataPack();

request.Put(payload, Api_GenericResponseHandler, pack);

...

public void Api_GenericResponseHandler(HTTPResponse response, DataPack pack, const char[] sError)
{
    if(!StrEqual(sError, "")) {
        Log(sError);
    }
}

Corresponding log entry

L 06/10/2022 - 11:08:28: necessary data rewind wasn't possible

I've dug through the curl-library archives and found a thread describing this error but it is beyond my level of expertise.

Is this an error you have come across before? Let me know if you require any more information, or have any tips for how I can further debug the issue, thanks!

Martin

@martindines martindines changed the title PUT Error: necessary data rewind wasn't possible PUT Request Error: necessary data rewind wasn't possible Jun 10, 2022
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

1 participant