You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have code that fetches all twilio alerts within the last 1 week. For each of these alerts, we create an alert object (TwilioAlert) in our DB. However, we have not created TwilioAlert with error_code 30003, 30005 before (we've been using this code for years). But we suddenly started seeing these errors come in starting July 1st (no code change to the code shown below). And now we've suddenly stopped seeing them since July 15th, but they are present in twilio monitor GUI. Furthermore, according to twilio monitor GUI, we have had these alerts at least for the last 4 months, we just haven't been seeing them be created in our db. Has anyone else had this issue and what could explain this discrepancy?
Currently, I see many 30003 errors on July 23rd, 2024 when I search for them in Message logs on Twilio but if I search for the error_code 30003 using: client.monitor.alerts.list(start_date: 1.week.ago).filter { |a| a.error_code == '30003' }, I don't see any come back.
I have reached out to twilio support and received no indication that they have changed anything. I'm wondering if anyone is experiencing similar issues or has any suggestions for why this might be happening.
Code Snippet
client = Twilio::REST::Client.new
alerts = client.monitor.alerts.list(start_date: 1.week.ago)
alerts.each do |alert|
TwilioAlert.find_or_create_by(resource_sid: alert.resource_sid) do |record|
record.error_code = alert.error_code
record.request_url = alert.request_url
record.request_variables = alert.request_variables
record.date_alert_created = alert.date_created
record.resolve_status = :unresolved
end
end
Issue Summary
We have code that fetches all twilio alerts within the last 1 week. For each of these alerts, we create an alert object (
TwilioAlert
) in our DB. However, we have not created TwilioAlert witherror_code
30003, 30005 before (we've been using this code for years). But we suddenly started seeing these errors come in starting July 1st (no code change to the code shown below). And now we've suddenly stopped seeing them since July 15th, but they are present in twilio monitor GUI. Furthermore, according to twilio monitor GUI, we have had these alerts at least for the last 4 months, we just haven't been seeing them be created in our db. Has anyone else had this issue and what could explain this discrepancy?Currently, I see many 30003 errors on July 23rd, 2024 when I search for them in Message logs on Twilio but if I search for the error_code 30003 using:
client.monitor.alerts.list(start_date: 1.week.ago).filter { |a| a.error_code == '30003' }
, I don't see any come back.I have reached out to twilio support and received no indication that they have changed anything. I'm wondering if anyone is experiencing similar issues or has any suggestions for why this might be happening.
Code Snippet
Technical details:
The text was updated successfully, but these errors were encountered: