shuying42
06/19/2024, 8:19 PMexport async function handler(medplum: MedplumClient, event: BotEvent): Promise<any> {
medplum.sendEmail(...);
}
However, the email sending failed, because the medplum client is not logged in...
Any pointer on what could cause this? I am self-hosting medplum server on AWS.
Thank you!shuying42
06/20/2024, 2:02 AMError sending email: {"outcome":{"resourceType":"OperationOutcome","id":"forbidden","issue":[{"severity":"error","code":"forbidden","details":{"text":"Forbidden"}}],"extension":[{"url":"https://medplum.com/fhir/StructureDefinition/tracing","extension":[{"url":"requestId","valueId":"f1364ba8-3da0-4f0b-82fc-2d196ee64249"},{"url":"traceId","valueId":"bb0e55ea-7998-48e0-a447-50875c288d3f"}]}]}}
I tried making the bot an admin but still got the same error.shuying42
06/20/2024, 2:25 AM