Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API occasionally returns invalid json #8

Open
netllama opened this issue Dec 3, 2017 · 0 comments
Open

API occasionally returns invalid json #8

netllama opened this issue Dec 3, 2017 · 0 comments

Comments

@netllama
Copy link

netllama commented Dec 3, 2017

The API occasionally returns invalid json, although I'm not able to manually reproduce the problem. For example, this query:
http://theapache64.cf:8080/movie_db/search?keyword=Tera%20Intezaar

usually returns this valid data:

{"data":{"plot":"A woman sets out to uncover how her lover went missing.","year":"2017","imdb_id":"tt5784852","director":"Raajeev Walia","name":"Tera Intezaar","rating":"3.6","genre":"Romance,Thriller","poster_url":"https://images-na.ssl-images-amazon.com/images/M/MV5BOWRhMWE5NzgtMGEzNS00YjM2LWE4ZTAtZWQ4MDY3MDVkMTQxXkEyXkFqcGdeQXVyNjQ2MjQ5NzM@._V1_UY268_CR4,0,182,268_AL_.jpg","stars":"Sunny Leone, Gauhar Khan, Arbaaz Khan, Sudha Chandran"},"error_code":0,"error":false,"message":"Movie found"}

However, occasionally, it will return this invalid json (note there are 2 json blobs appended together):

{"data":{"plot":"After being told that their children never existed, a man and woman soon discover there is a much bigger enemy at work.","year":"2004","imdb_id":"tt0356618","director":"Joseph Ruben","name":"The Forgotten","rating":"5.8","genre":"Drama,Horror,Mystery","poster_url":"https://images-na.ssl-images-amazon.com/images/M/MV5BMjAwMjIyNjU4NV5BMl5BanBnXkFtZTcwNjE3NjYyMQ@@._V1_UX182_CR0,0,182,268_AL_.jpg","stars":"Julianne Moore, Dominic West, Christopher Kovaleski, Matthew Pleszewicz"},"error_code":0,"error":false,"message":"Movie found"}{"data":{"plot":"A woman sets out to uncover how her lover went missing.","year":"2017","imdb_id":"tt5784852","director":"Raajeev Walia","name":"Tera Intezaar","rating":"3.6","genre":"Romance,Thriller","poster_url":"https://images-na.ssl-images-amazon.com/images/M/MV5BOWRhMWE5NzgtMGEzNS00YjM2LWE4ZTAtZWQ4MDY3MDVkMTQxXkEyXkFqcGdeQXVyNjQ2MjQ5NzM@._V1_UY268_CR4,0,182,268_AL_.jpg","stars":"Sunny Leone, Gauhar Khan, Arbaaz Khan, Sudha Chandran"},"error_code":0,"error":false,"message":"Movie found"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant