---
name: codeengine-ts-subscription-delivererr
title: Why does my subscription show errors when it delivers events?
description: Subscription events were created, but errors are received when events are delivered to your Code Engine application or job.
last-updated: 2022-11-21
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/codeengine?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Why does my subscription show errors when it delivers events?
{: #ts-subscription-deliveryerrors}
{: troubleshoot}

Subscription events were created, but errors are received when events are delivered to your Code Engine application or job.
{: tsSymptoms} 

Check to see whether one of the following cases is true.
{: tsCauses}

1. Does the subscription destination application or job exist? 
2. Is the destination app or job prepared and looking for HTTP POST messages?

Look at the subscription source to see whether any error messages are returned. For IBM Cloud Object Storage subscriptions, use the [**`ibmcloud ce sub cos get --name SUB_NAME`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-subscription-cos-get) command. For cron subscriptions, use [**`ibmcloud ce sub cron get --name SUB_NAME`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-subscription-cron-get) command.
{: tsResolve}

1. Confirm that your subscription destination exists. 

    * If your subscription destination is an application, use the [**`ibmcloud ce app list`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-list) command to confirm that your application exists and that it wasn't deleted. Check that the status of your application is `Ready`. You can also use the [**`ibmcloud ce app get`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-get) command to display the status of the application. 
    * If your subscription destination is a job, use the [**`ibmcloud ce job list`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-job-get) command to confirm that your job exists. You can also use the [**`ibmcloud ce job get`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-job-get) command to display the status of the job. 

    For more information about Object Storage subscriptions, see [Working with the Object Storage event producer](https://cloud.ibm.com/docs/codeengine?topic=codeengine-eventing-cosevent-producer&format=markdown). For more information about cron subscriptions, see [Working with the cron event producer](https://cloud.ibm.com/docs/codeengine?topic=codeengine-subscribe-cron&format=markdown).

2. The error message that your subscription source receives might include a `404 Not Found` error or a `5xx HTTP` error. If you receive either of these errors, then confirm that your destination application is expecting to receive event information as POST HTTP requests. Event information is received as POST HTTP requests for applications and as environment variables for jobs.

If these solutions do not solve your issue, retrieve the logs of your subscription destination application or job. For apps, use the [**`ibmcloud ce app logs`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-application-logs) command. For jobs, use the  [**`ibmcloud ce jobrun logs`**](https://cloud.ibm.com/docs/codeengine?topic=codeengine-cli&format=markdown#cli-jobrun-logs) command to obtain the logs for your specific jobrun. 

If these solutions do not solve your issue, try one of the resources in [getting support](https://cloud.ibm.com/docs/codeengine?topic=codeengine-get-support&format=markdown).