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

Fix SendMessageMutation Error #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

veloper
Copy link

@veloper veloper commented Jul 24, 2024

Fixes #179

Tested locally; seems to work now.


My original work and comments:

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

@huiye19
Copy link

huiye19 commented Jul 25, 2024

May I know in what files I should change the "SendMessageMutation" to "sendMessageMutation"? Thanks!

@ChisanaKita
Copy link

May I know in what files I should change the "SendMessageMutation" to "sendMessageMutation"? Thanks!

Check commit

@ChisanaKita
Copy link

ChisanaKita commented Jul 25, 2024

@veloper I want to mention that other queries are also changed as well. For example: SubscriptionsMutation -> subscriptionsMutation and ExploreBotsIndexPageQuery -> exploreBotsIndexPageQuery

Edit:
For some reason the ExploreBotsListPaginationQuery hash also changed.

@huiye19
Copy link

huiye19 commented Jul 25, 2024

May I know in what files I should change the "SendMessageMutation" to "sendMessageMutation"? Thanks!

Check commit

Thanks sooo much! It works now!

@veloper
Copy link
Author

veloper commented Jul 25, 2024

@ChisanaKita - alright, ill try and see if i can get a dump of all the protocol response possible but it's going to be a piecemeal operation atm.

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 this pull request may close these issues.

SendMessageMutation request fails starting 2 hours ago
3 participants