Reputation: 71
i get an Error since yesterday. If i try any kind of debugging with "console.log"
const response = await fetch(pickedImage.uri);
const file_blob = await response.blob();
console.log(response); // throw this error
const blob = await new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
xhr.onload = function () {
console.log(xhr.response); // throw this error
resolve(xhr.response);
};
xhr.onerror = function (e) {
console.log(e);
reject(new TypeError('Network request failed'));
};
xhr.responseType = 'blob';
xhr.open('GET', pickedImage.uri, true);
xhr.send(null);
});
// console.log(blob); // throw this error
This is the error message:
console.error: There was a problem sending log messages to your development enviroment.
Error: value.hasOwnProperty is not a function.
(In 'value.hasOwnProperty('tag')', 'value.hasOwnProperty' is undefined.
Please can anyone help me out i'm stuck :(
Upvotes: 1
Views: 1419
Reputation: 126
I ran into the same issue when trying to log the response of a fetch call. It happens because the response is too big to log. Only log the part of the response that you need. Also this error should not crash your app. You should be able to dismiss it and continue with your app.
Upvotes: 1