Cloudflare DevelopersCD
Cloudflare Developers3y ago
24 replies
danny.m

invalid url string when attempting js module import

Currently trying to import from a file...
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
  }
Was this page helpful?