Audit Event error
# support
a
Hey guys, when I trigger a bot using the $execute endpoint, I get the following error: POST https:///fhir/R4/Bot//$execute 400 (Bad Request) OperationOutcomeError: Invalid string format (AuditEvent.outcomeDesc) When I disable audit logging for the affected bots, it seems to work properly. I am just using the stock medplum and haven't made any changes. How do I fix this? I don't want to turn off audit events. Some of my bots work fine without turning off audit events and some do not. What can I do to make sure all of them work properly?
r
There is potentially some issue with a console log inside that bot. If you do a simple hello world bot where you console log "hello world," do you still have that same issue?
a
Doesn't seem to be the case actually. I removed all console.logs and it still gave me an error
r
Do you mind sharing the logResult? Sometimes if there is a NULL or other ASCII control characters can trigger this result. For example if the bot did nothing just return true - do you still get the error?
99 Views