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

String escaping isssue #74

Closed
amoeba opened this issue Jul 4, 2020 · 1 comment
Closed

String escaping isssue #74

amoeba opened this issue Jul 4, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@amoeba
Copy link
Owner

amoeba commented Jul 4, 2020

From Brycter:

7:00 [TownCrier] Error encountered when sending webhook:
0:17:00 [TownCrier] URL: 'https://discordapp.com/api/webhooks/724654274230878269/HCvb5Qj3zzlIew_-bOg7tfznkk85IrQZpXyEdHXUo5vKjGobBIpqDbFFu1Lh5wZfVFqe'
0:17:00 [TownCrier] Payload: '{"content": "7/4/2020 12:16:59 AM [General] Dumbass says, "\cant use""}'
0:17:00 [TownCrier] Error: '{"message": "400: Bad Request", "code": 0}'
0:17:00 [TownCrier] Double-check your URL, Method, and Payload values.

See the imbalanced double quotes.

@amoeba amoeba added the bug Something isn't working label Jul 4, 2020
@amoeba amoeba self-assigned this Jul 4, 2020
@amoeba
Copy link
Owner Author

amoeba commented Jul 4, 2020

Can reproduce a similar issue:

Input: [Fellowship] You say, "cant use\"

Get

7/3/2020 9:20:04 PM: WebhookRequest.SendPOST
7/3/2020 9:20:04 PM:   Url is https://discordapp.com/api/webhooks/531740310674604043/wU1FqslYss6aAlEZ_IPVCHumK53J8hY_BcLVYxjWcpuJwgS4TaI8RIDInYp2zKeSeFy3
7/3/2020 9:20:04 PM:   Payload is { "content": "[Fellowship] Kolthar says \"cant use\\"" }
7/3/2020 9:20:05 PM: {"message": "400: Bad Request", "code": 0}

@amoeba amoeba closed this as completed in 98ce97d Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant