reqn icon indicating copy to clipboard operation
reqn copied to clipboard

Requesting a fake link generates code 401 that breaks reqn

Open aescraftbr opened this issue 6 years ago • 0 comments

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.

aescraftbr avatar Sep 01 '19 05:09 aescraftbr