Error 1101 workers

Hi i have the same issue.

https://tt.hername.workers.dev/

Looks like we are banned without notice.

Hi @s.nehzati

When a Cloudflare Worker encounters an exception (e.g. an error/condition that wasn’t properly handled) it can cause your visitors to see an 1101 Error which will be presented with an HTTP 500 status code. You can find more on Cloudflare Worker error codes and invocation statuses at the links provided.

You can easily handle exceptions in your Worker code by using statements such as try…catch to ensure that if an exception is thrown in your code then it will be caught and handled gracefully.

For example, wrapping code that could trigger an exception as follows:

try 
{
  // potential exception in this code block
  myfunction();
} 
catch (error) 
{
  // if an exception was thrown, catch the error in this block
  console.error(error);
}

Alternatively, if you would rather pass the request onto the origin server in case of an exception, you would add the event.passThroughOnException() function to the Fetch addEventListener as shown below:

addEventListener("fetch", event => {
  event.passThroughOnException()
  event.respondWith(handleRequest(event.request))
})

Please keep in mind that while we are happy to help with troubleshooting the deployment of your Worker script, unfortunately, we cannot debug user code.

For further assistance, we suggest taking a look at our developer documentation or reach out on the community forums where other users and developers can help with your code:

Hopefully this helps but do let us know of further questions here.

Hi Thanks for your response

this is the code that I have

/**
 * Welcome to Cloudflare Workers! This is your first worker.
 *
 * - Run "npm run dev" in your terminal to start a development server
 * - Open a browser tab at http://localhost:8787/ to see your worker in action
 * - Run "npm run deploy" to publish your worker
 *
 * Learn more at https://developers.cloudflare.com/workers/
 */

export default {
  async fetch(request, env, ctx) {
    return new Response('Hello World!');
  },
};

this is the link
https://worker-shrill-wood-15e3.ourname.workers.dev/

it is nothing special, I don’t understand why it shows this error.