-
Notifications
You must be signed in to change notification settings - Fork 1
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
Output fails if payload doesn't already exist... #1
Comments
This is my code. I am checking if there is |
Hi @balsimpson it does. I also noticed that urls such as "https://qft.hodloo.com/#/binance:eth-usdt" do not shortnen correctly and return only "https://qft.hodloo.com", it works fine via is.gd direct... |
Seems to be an API issue, works direct, but not via the API GET, hmmm. is.gd documentation states: The url parameter is the address that you want to shorten. You must URL encode this parameter before submitting it otherwise your application will not properly support URLs containing symbols such as hash, semicolon, plus and ampersand (among others). A lot of languages have a built in function for URL encoding such as encodeURIComponent() in Javascript, urllib.quote() in Python and urlencode() in PHP. |
|
Have updated the code. Do check if it's working. |
Hi,
I have a few cases whereby there is no payload when I send the shorturl to the node, in this case it fails... I workaround it by creating a fake payload before, but it's not ideal :)
I believe this issues is because you try to send the payload using "msg.payload.shorturl", which will not work if no payload exists (annoying, I know). Instead I guess we need:
msg.payload = '{"shorturl:" "url"}'
Edit: It would be really nice if we could configure the input msg name and the output, would help avoid conflicts in more complicated flows.
The text was updated successfully, but these errors were encountered: