You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RequestError: Unexpected token < in JSON at position 0 in "https://www.realtor.com/realestateandhomes-detail/3713-Ohio-Ave_Tampa_FL_33611_M50711-30877"
2021-05-13T19:53:21.852Z at Object.parseBody [as default] (/usr/src/app/node_modules/got/dist/source/as-promise/parse-body.js:22:15)
2021-05-13T19:53:21.854Z at Request.<anonymous> (/usr/src/app/node_modules/got/dist/source/as-promise/index.js:72:61)
2021-05-13T19:53:21.856Z at JSON.parse (<anonymous>)
2021-05-13T19:53:21.858Z at parseJson (/usr/src/app/node_modules/got/dist/source/index.js:118:35)
2021-05-13T19:53:21.860Z at Object.parseBody [as default] (/usr/src/app/node_modules/got/dist/source/as-promise/parse-body.js:11:48)
2021-05-13T19:53:21.862Z at Request.<anonymous> (/usr/src/app/node_modules/got/dist/source/as-promise/index.js:72:61)
2021-05-13T19:53:21.864Z at processTicksAndRejections (node:internal/process/task_queues:96:5)
Without the json field it works
The text was updated successfully, but these errors were encountered:
Describe the bug
Passing a boolean json param forces JSON parsing even if that boolean is false
To Reproduce
const response = await Apify.utils.requestAsBrowser({
url: 'http://www.realtor.com/realestateandhomes-detail/3713-Ohio-Ave_Tampa_FL_33611_M50711-30877',
json: false
});
Crashes with
Without the
json
field it worksThe text was updated successfully, but these errors were encountered: