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

ShortURL - invalid characters in search term #611

Open
YueMiyuki opened this issue Dec 8, 2021 · 0 comments
Open

ShortURL - invalid characters in search term #611

YueMiyuki opened this issue Dec 8, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@YueMiyuki
Copy link

YueMiyuki commented Dec 8, 2021

Please describe the problem you are having in as much detail as possible:
The shorturl command wont work if there is an + symbol in the link
For example: https://www.google.com/search?client=opera&q=awa&sourceid=opera&ie=UTF-8&oe=UTF-8

To Reproduce
Steps to reproduce the behavior:
use the shorturl command

Expected behavior
A clear and concise description of what you expected to happen:
hm it should prase +, i guess, but it wont

Screenshots
If applicable, add screenshots to help explain your problem:
By using

console.log(res)
console.log(body)

Output of console.log(res):

Response {
  size: 0,
  timeout: 0,
  [Symbol(Body internals)]: {
    body: PassThrough {
      _readableState: [ReadableState],
      _events: [Object: null prototype],
      _eventsCount: 4,
      _maxListeners: undefined,
      _writableState: [WritableState],
      allowHalfOpen: true,
      [Symbol(kCapture)]: false,
      [Symbol(kCallback)]: null
    },
    disturbed: true,
    error: null
  },
  [Symbol(Response internals)]: {
    url: 'https://is.gd/create.php?format=simple&url=lmao++1',
    status: 400,
    statusText: 'Bad Request',
    headers: Headers { [Symbol(map)]: [Object: null prototype] },
    counter: 0
  }
}

Output of console.log(body):

Error: Please enter a valid URL to shorten

Further details:

  • atlanta version: latest
  • discord.js version: 12.5.3
  • Node.js version: 16.8.0
  • Operating system: Windows 10

Additional context
Add any other context about the problem here: Just a Screen Shot
image

THIS IS 100% AN API ISSUE

@wesleigh wesleigh added the bug Something isn't working label Jan 19, 2022
@wesleigh wesleigh changed the title BUG ShortURL - invalid characters in search term Jan 19, 2022
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

2 participants