Not able to print an API response in content script despite getting the response in network logs

Have a content script that, when a button is clicked, uses Plasmo's messaging framework to make an API request via a background script

Everything works fine: the relevant data is sent, received by the API, and a good response is sent back from the API ('healthy'), but for some reason the background script is not passing the response back to our content script. When we log the response, it's an empty object.

Images:

  1. is the call to our background script from our content script
  2. is the background script
  3. is the empty object in our console logs
  4. is the confirmed healthy response from our network logs
Have tried a bunch of debugging to no avail. Thanks!
image1.png
image2.png
image3.png
image4.png
Was this page helpful?