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

Requesting a fake link generates code 401 that breaks reqn #13

Open
aescraftbr opened this issue Sep 1, 2019 · 0 comments
Open

Requesting a fake link generates code 401 that breaks reqn #13

aescraftbr opened this issue Sep 1, 2019 · 0 comments

Comments

@aescraftbr
Copy link

aescraftbr commented Sep 1, 2019

01.09 01:35:46 [Server] pool-17-thread-3/WARN java.io.IOException: Server returned HTTP response code: 401 for URL: https://dl.dropboxusercontent.com/s/testurl/testing.mp3?dl=0

command /debug [<text>]:
  permission: skript.admin
  trigger:
    send an http "head" request to arg-1
    set {_resp} to the last http response
    wait 1 second
    set {_code} to {_resp}'s status code
    send {_code}

When using the command /debug https://dl.dropboxusercontent.com/s/testurl/testing.mp3?dl=0, instead of returning a http response to be checked, {_resp} and {_code} is not set, as reqn generates an error to the console.

Thanks.

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

No branches or pull requests

1 participant