Linuxgsm: Issues with curl & non ASCII characters

Created on 4 Apr 2017  Â·  7Comments  Â·  Source: GameServerManagers/LinuxGSM

I'll check if i can reproduce this.
pic
pic

Postdetails: https://hastebin.com/kuqusofito

bug

All 7 comments

All I can say after trying to reproduce is that the hostname causes the issue.
ORANGE/FUN MAPS 100% TWEAKED CRITS <[Kapiszony.pl]>
However, if notifications aren't sent, I'm not getting any fancy output, it just won't be sent.
Digging a bit deeper.

Issue is that the % sign gets interpreted in the following command:

curl --silent -u o.g6et5OUAPI: -d channel_tag= -d type=note -d 'body=LinuxGSM test alert, how you read?' -d 'title=LinuxGSM - Test Alert - ORANGE/FUN MAPS 100% TWEAKED CRITS <[Kapiszony.pl]>' https://api.pushbullet.com/v2/pushes

Since the command is already between single quotes, i'm not sure if there is anything we can do about it to make it work with a % sign.

Ideas anyone?

Edit: After digging a bit more, this appears to be a pushbullet limitation rather than curl.

I'm trying to reach Pushbullet team to submit this bug.

Example output with stripped personal info

Not working because of "%" sign:

````bash
ultimatebyte@game:~$ curl --silent -u o.API: -d channel_tag= -d type=note -d 'body=LinuxGSM test alert, how you read?' -d 'title=LinuxGSM - Test Alert - ORANGE/FUN MAPS 100% TWEAKED CRITS <[Kapiszony.pl]>' https://api.pushbullet.com/v2/pushes

{"error":{"code":"invalid_request","type":"invalid_request","message":"Failed to decode urlencoded POST form body.","cat":"~(=^‥^)ノ"},"error_code":"invalid_request"}
````

Working:
````bash
ultimatebyte@game:~$ curl --silent -u o.API: -d channel_tag= -d type=note -d 'body=LinuxGSM test alert, how you read?' -d 'title=LinuxGSM - Test Alert - ORANGE/FUN MAPS 100 TWEAKED CRITS <[Kapiszony.pl]>' https://api.pushbullet.com/v2/pushes

{"active":true,"iden":"API","created":1.4913303674548767e+09,"modified":1.4913303674905274e+09,"type":"note","dismissed":false,"direction":"self","sender_iden":"API","sender_email":"[email protected]","sender_email_normalized":"[email protected]","sender_name":"R","receiver_iden":"API","receiver_email":"[email protected]","receiver_email_normalized":"[email protected]","title":"LinuxGSM - Test Alert - ORANGE/FUN MAPS 100 TWEAKED CRITS \u003c[Kapiszony.pl]\u003e","body":"LinuxGSM test alert, how you read?"}
````

Thanks @jenK from Discord, we now know that this is actually a curl issue.
Converting the % sign to ASCII solves the issue.
Which means: change % to %25.

A good measure would be to convert anything sent using curl to ASCII.

Looking at a way to do this

Good job @dgibbs64

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YannKr picture YannKr  Â·  3Comments

Bourne-ID picture Bourne-ID  Â·  3Comments

BarbieQ1 picture BarbieQ1  Â·  4Comments

dj-hyb picture dj-hyb  Â·  3Comments

Khelgar1 picture Khelgar1  Â·  3Comments