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

SendMessageMutation request fails starting 2 hours ago #179

Closed
PMajesty opened this issue Jul 24, 2024 · 7 comments · May be fixed by #180
Closed

SendMessageMutation request fails starting 2 hours ago #179

PMajesty opened this issue Jul 24, 2024 · 7 comments · May be fixed by #180

Comments

@PMajesty
Copy link

  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\poe_api_wrapper\api.py", line 798, in send_message
    message_data = self.send_request(apiPath, 'SendMessageMutation', variables, file_form)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\user\AppData\Local\Programs\Python\Python312\Lib\site-packages\poe_api_wrapper\api.py", line 183, in send_request
    raise Exception(
Exception: Sending request SendMessageMutation failed. status_code:200,  Error log: RuntimeError("Server Error. Raw response data: {'data': None, 'errors': [{'message': 'Server Error'}], 'extensions': {'is_final': True}}")

IDK what happened, I didn't change anything in my script, but all requests just started failing. Funny thing is - it returns status_code: 200 for some reason...

@tslearn
Copy link

tslearn commented Jul 24, 2024

i have the same bug, i guess poe change something in server.

@veloper
Copy link

veloper commented Jul 24, 2024

Screen Shot 2024-07-24 at 3 51 06 PM

Seems like they might have actually lower-cased the first S in the path:

-SendMessageMutation
+sendMessageMutation

Protocol Inspection:

{
  "queryName": "sendMessageMutation",
  "variables": {
    "chatId": null,
    "bot": "claude_3_igloo",
    "query": "hi again",
    "source": {
      "sourceType": "chat_input",
      "chatInputMetadata": {
        "useVoiceRecord": false
      }
    },
    "clientNonce": "<...>",
    "sdid": "<...>",
    "attachments": [],
    "existingMessageAttachmentsIds": [],
    "shouldFetchChat": true,
    "messagePointsDisplayPrice": 200
  },
  "extensions": {
    "hash": "b5694554bb2d91d0226fed35139f1d038fdd0fa30148be02546d0e2afa3e72a4"
  }
}

with the hash differing from:

"SendMessageMutation": "b4aff2855bc876361737bcbf5f9310b5da4d3250923894ecb8f339de4c2e3fa3",

Confirmed a change worked, making a PR now.

#180

@FaTal-error1
Copy link

FaTal-error1 commented Jul 25, 2024

The problem persists even after changing the "S" in SendMessageMutation to lowercase in the three mentioned files.
{ "error": "Error getting response from Poe: Sending request sendMessageMutation failed. status_code: 200, Error log: RuntimeError(\"Server Error. Raw response data: {'data': None, 'errors': [{'message': 'Server Error'}], 'extensions': {'is_final': True}}\")" }

@BeetleBobsai79
Copy link

change the hash to
"SendMessageMutation": "b4aff2855bc876361737bcbf5f9310b5da4d3250923894ecb8f339de4c2e3fa3",

it fixes the problem

@owlsan49
Copy link

owlsan49 commented Jul 25, 2024

Screen Shot 2024-07-24 at 3 51 06 PM

Seems like they might have actually lower-cased the first S in the path:

-SendMessageMutation
+sendMessageMutation

Protocol Inspection:

{
  "queryName": "sendMessageMutation",
  "variables": {
    "chatId": null,
    "bot": "claude_3_igloo",
    "query": "hi again",
    "source": {
      "sourceType": "chat_input",
      "chatInputMetadata": {
        "useVoiceRecord": false
      }
    },
    "clientNonce": "<...>",
    "sdid": "<...>",
    "attachments": [],
    "existingMessageAttachmentsIds": [],
    "shouldFetchChat": true,
    "messagePointsDisplayPrice": 200
  },
  "extensions": {
    "hash": "b5694554bb2d91d0226fed35139f1d038fdd0fa30148be02546d0e2afa3e72a4"
  }
}

with the hash differing from:

"SendMessageMutation": "b4aff2855bc876361737bcbf5f9310b5da4d3250923894ecb8f339de4c2e3fa3",

Confirmed a change worked, making a PR now.

#180

It doesn't work for me. After doing this fix, I get the same error.
image

@PMajesty
Copy link
Author

Screen Shot 2024-07-24 at 3 51 06 PM
Seems like they might have actually lower-cased the first S in the path:

-SendMessageMutation
+sendMessageMutation

Protocol Inspection:

{
  "queryName": "sendMessageMutation",
  "variables": {
    "chatId": null,
    "bot": "claude_3_igloo",
    "query": "hi again",
    "source": {
      "sourceType": "chat_input",
      "chatInputMetadata": {
        "useVoiceRecord": false
      }
    },
    "clientNonce": "<...>",
    "sdid": "<...>",
    "attachments": [],
    "existingMessageAttachmentsIds": [],
    "shouldFetchChat": true,
    "messagePointsDisplayPrice": 200
  },
  "extensions": {
    "hash": "b5694554bb2d91d0226fed35139f1d038fdd0fa30148be02546d0e2afa3e72a4"
  }
}

with the hash differing from:

"SendMessageMutation": "b4aff2855bc876361737bcbf5f9310b5da4d3250923894ecb8f339de4c2e3fa3",

Confirmed a change worked, making a PR now.
#180

It doesn't work for me. After doing this fix, I get the same error. image

Try to reinstall the package from the pull request #180

@snowby666
Copy link
Owner

This is fixed in the new version. Poe's just changed some of their hashes.

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

Successfully merging a pull request may close this issue.

7 participants