TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object
I keep getting the same error (see title above), yet RapidAPI treats it as any other chargeable API call.
As I understand it, the error is raised by ScrapeNinja. Yet the “data” argument should be unnecessary for a GET request, according to API Documentation.
The environment is Node.js using request with the following options :
‘User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36’,
Join in the discussion - add comment below:
Hi! This is the Amazon API support forum, and not ScrapeNinja API support 😃
I see you are doing successful requests now, hopefully you figured out this one.
“data” is indeed only required for POST so it’s probably something wrong with your payload.
If you are still in trouble, please send your code to https://t.me/instalyze so I can investigate.