Closed indrazm closed 8 months ago
Hey, I have issue when using this.
I got this error. fetch error: Error: response code 0
Here is my code.
const handleOnScrapeMetadata = async (event: React.ChangeEvent<HTMLInputElement>) => { const url = event.target?.value; const options = { cache: 'no-cache', mode: 'no-cors', timeout: 10000, descriptionLength: 750, ensureSecureImageRequest: true, includeResponseBody: true, }; console.log('fetching metadata for:', url); try { const metadata = await urlMetadata(url, options); console.log('fetched metadata:', metadata); } catch (err) { console.log('fetch error:', err); } };
Is there anything i am missing of ?
status 0 usually means a CORS issue, maybe try changing "mode" to "cors".
Hey, I have issue when using this.
I got this error. fetch error: Error: response code 0
Here is my code.
Is there anything i am missing of ?