Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

fix: Return proper responses to unexpected errors #432

Merged
merged 4 commits into from
Sep 9, 2020

Conversation

mykola-mokhnach
Copy link
Contributor

All clients expect responses to be returned as valid json objects and throw exceptions in case of plain text: https://gist.github.com/TransmitTomerDavid/31132cd2ea3ce3c4514e24494ad8f504

Copy link
Member

@jlipps jlipps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but pretty sure this could break JSONWP client support?

@mykola-mokhnach
Copy link
Contributor Author

@jlipps According to what I see in clients all of them are only expecting JSON responses.

@mykola-mokhnach
Copy link
Contributor Author

mykola-mokhnach commented Sep 8, 2020

@jlipps Could you also help fixing https://travis-ci.org/github/appium/appium-base-driver/jobs/725344616#L1804 (perhaps in the other PR). I have a feeling these tests were broken before, so I just skip them for now.

@jlipps
Copy link
Member

jlipps commented Sep 8, 2020

sure, will take a look

@mykola-mokhnach mykola-mokhnach merged commit e24be8a into appium:master Sep 9, 2020
@mykola-mokhnach mykola-mokhnach deleted the err_404 branch September 9, 2020 05:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants