Error message: "Not exposed. check internal logs" when running service in prod

Trying to find out why my service is providing an error message in prod.
The service is run from an admin app and runs a web request towards vipps.

It works fine in dev, so I don´t really understand the error. The user has the required role to run the service and I don´t see why it would be different in prod.

I have verified that the web request is OK (url is different than in dev) in postman.

It actually looks like the web request IS run succesfully and the data is updated, so I guess the error might come from something else.

Oh and there is no sign of any activity in the service logs (they are turned on) for that service.

Hi Johan,

Do you an Event Log in your solution?

If that is the case, you can setup an Catch Web Request Exception underneath your web request. If your web request fails, which seems to be the case according to your screenshot, details about the failure will be logged.

To get even more details, you can add this to your Result Mapper on the Catch Exception:

const debug = {
    httpStatusCode,
    code,
    name,
    message,
    body
}

return {
    allData: JSON.stringify(debug),
    name,
    message,
    body,
    code,
    httpStatusCode,
}

You can then map these properties to your Event Log to get all the details about the web request, which is useful when debugging.
Without some more information about the failure, it is hard to debug what has gone wrong :slightly_frowning_face:

// Erik

Thanks, I will try to see if I can find some more details.