Error 1016: Orgin DNS error for https://talk-staind.submarine.workers.dev/

Hello, I recently created a worker to fetch one of my websites (talk.staind.gf.rd), however when I open the worker, I am met with the following message

I’ve included my workers code is below in case that helps!

addEventListener("fetch", (event) => {
  event.respondWith(
    handleRequest(event.request).catch(
      (err) => new Response(err.stack, { status: 200 })
    )
  );
});

/**
 * Many more examples available at:
 *   https://developers.cloudflare.com/workers/examples
 * @param {Request} request
 * @returns {Promise<Response>}
 */
async function handleRequest(request) {
  const { pathname } = new URL(request.url);

  if (pathname.startsWith("/api")) {
    return new Response(JSON.stringify({ pathname }), {
      headers: { "Content-Type": "application/json" },
    });
  }

  if (pathname.startsWith("/status")) {
    const httpStatusCode = Number(pathname.split("/")[2]);

    return Number.isInteger(httpStatusCode)
      ? fetch("https://www.talk.staind.gf.rd" + httpStatusCode)
      : new Response("Ok");
  }

  return fetch("https://www.talk.staind.gf.rd");
}

So does anyone know how to solve this, I do NOT have a root domain (only a workers sub-domain)!

It does not seem like there is any DNS record on that currently, so that is failing to resolve.

So, how do I fix it?

I can’t add it to my Cloudflare dashboard account (because it’s a subdomain and I DON’T own the root domain)!

Hang on I think I may have realized what is causing this issue! I think I may have mistyped my fetch URL, I’ll check it and see if that fixes the issue!

Update: I just changed the fetch URL from www.talk.staind.gf.rd to www.talkstaind.gf.rd but are still receiving the error!

So what now? What’s the cause of all of this? Is it the DNS records?

By the way, the updated worker’s code is below if it helps!

addEventListener("fetch", (event) => {
  event.respondWith(
    handleRequest(event.request).catch(
      (err) => new Response(err.stack, { status: 200 })
    )
  );
});

/**
 * Many more examples available at:
 *   https://developers.cloudflare.com/workers/examples
 * @param {Request} request
 * @returns {Promise<Response>}
 */
async function handleRequest(request) {
  const { pathname } = new URL(request.url);

  if (pathname.startsWith("/api")) {
    return new Response(JSON.stringify({ pathname }), {
      headers: { "Content-Type": "application/json" },
    });
  }

  if (pathname.startsWith("/status")) {
    const httpStatusCode = Number(pathname.split("/")[2]);

    return Number.isInteger(httpStatusCode)
      ? fetch("https://www.talkstaind.gf.rd" + httpStatusCode)
      : new Response("Ok");
  }

  return fetch("https://www.talkstaind.gf.rd");
}

So what’s the cause of this error I’m getting?

Hey, there’s still no DNS records for that address

1 Like

Ah ■■■■, you are right! There are no DNS records!

Also, this email might have something to do with it!

Assuming that’s the cause (which it may be), creating a new website with them might fix this issue!

Damn, I created the site with them and are still getting the error!

Are there still no DNS records? My infinity free dashboard shows this

So could it be another 72 hours before this issue resolves itself? Again, are there DNS records for the site?

According to your screenshot, your domain is japklaxz.epizy.com. Do you see anywhere on your dashboard the other hostname being mentioned/linked?

image

image

That’s not the same domain you put in your code. I recommend to triple-check for typos.

1 Like

Ok, it’s reachable now, but there’s no content!


It appears your webserver is not properly configured yet.