Open victordiaz opened 3 years ago
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)
})
Problem description Discovered this issue through https://github.com/victordiaz/PHONK/issues/89
Steps to reproduce the bug Copy the HTTP Post content to a different project (without the .png file) and execute