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
how can I read the raw response string of any endpoint if it fails due to any reason,
for example my code is:
Endpoint.user(matching:` "username")
.unlock(with: secret)
.session(.instagram)
.sink {
if case let .failure(error) = $0 {
}
} receiveValue: { unit in
}
.store(in: &bin)
is there any way to read the response string, especially if I get an error from the end point?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi @sbertix,
how can I read the raw response string of any endpoint if it fails due to any reason,
for example my code is:
is there any way to read the response string, especially if I get an error from the end point?
I'll be really thankful to you for any help.
Beta Was this translation helpful? Give feedback.
All reactions