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
I was expecting when printing e that I'd get all the details from the error (instead I was only getting the error message)
client.views_open(
view: view,
trigger_id: request[:trigger_id]
)
rescue Slack::Web::Api::Errors::InvalidArguments => e
puts e # prints invalid_arguments
puts e.error # prints invalid_arguments
puts e.response_metadata # prints the error from slack's api
end
Activity
dblock commentedon Jun 22, 2023
Do you mean it doesn't include
response_metadata? We should, it's not on purpose.kevinrobayna commentedon Jun 22, 2023
Actually, the response metadata is present 😅
I was expecting when printing e that I'd get all the details from the error (instead I was only getting the error message)
kevinrobayna commentedon Jun 22, 2023
Closing since people can get the error details as expected I was just being silly 😅
dblock commentedon Jun 23, 2023
We could change
to_sto display it.feat: Include details for web api errors
kevinrobayna commentedon Jun 23, 2023
yeah! raised a PR for it, let me know your thoughts
#483