#Api route handler isn't receiving image key

1 messages · Page 1 of 1 (latest)

forest hollowBOT
#

Hi @humble lion. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the information provided in the extracts, it's not clear why the image key is not being received in your API route handler. The code you've shared seems correct and should work as expected.

However, there are a few things you could check:

  1. Ensure that the linkToDelete.imageKey value is not undefined or null before sending the request.
  2. Check if the request.url in your API route handler is correct and contains the query parameters.
  3. Make sure that the API route handler is set up correctly and is able to handle DELETE requests.

Unfortunately, without more context or information, it's hard to provide a more specific solution. If the issue persists, you might want to consider posting a detailed question on a platform like StackOverflow or the Next.js GitHub issues page.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@humble lion kapa.ai is still learning and improving, please let us know how it did by reacting below

#

Let me check the knowledge base for you. One moment! :books: