danny.m
danny.m
CDCloudflare Developers
Created by danny.m on 10/17/2023 in #workers-help
invalid url string when attempting js module import
Currently trying to import from a file...
import {metadataExtractor} from './extractor/extractor.js'
import {metadataExtractor} from './extractor/extractor.js'
I get this error when I try to hit my worker
text: 'A request to the Cloudflare API
(/accounts/61d49c021d802c88abdb553e6f9342dd/workers/scripts/dark-voice-8281/edge-preview)
failed.',
notes: [
{
text: 'Uncaught TypeError: Invalid URL string.\n' +
' at index.js:1453:32\n' +
' at index.js:1550:3\n' +
' [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021
}
text: 'A request to the Cloudflare API
(/accounts/61d49c021d802c88abdb553e6f9342dd/workers/scripts/dark-voice-8281/edge-preview)
failed.',
notes: [
{
text: 'Uncaught TypeError: Invalid URL string.\n' +
' at index.js:1453:32\n' +
' at index.js:1550:3\n' +
' [code: 10021]'
}
],
location: undefined,
kind: 'error',
code: 10021
}
25 replies