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

httpRequest method not giving proper feedback when trying to upload a non-existing file #91

Open
victordiaz opened this issue Dec 23, 2020 · 1 comment

Comments

@victordiaz
Copy link
Owner

Problem description
Discovered this issue through #89

Steps to reproduce the bug
Copy the HTTP Post content to a different project (without the .png file) and execute

@Slord6
Copy link

Slord6 commented Dec 23, 2020

Closely related; if the data structure for the data of a http request is missing the name, data or type property the script crashes with no error to the console. Example:

network.httpRequest({
    method: 'POST',
    url: url,
    data: [
      { 'content': JSON.stringify(data), 'type': 'json' }, //problem
    ]
  }).onResponse(function (e) {
    console.log(e.status, e.response)
  })

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

2 participants