EOFException: End of input at line 1 column 1 path $ 

EOFException: End of input at line 1 column 1 path $ 

EOFException: End of input at line 1 column 1 path $  or Retofit2 error java.io.EOFException: End of input at line 1 column 1

Reasons:

This error message indicates a completely empty response, not the one you have indicated. If it’s an error you should be using errorBody() to get access to the data. If this is a normal response then you should yell at your server for returning no content when content was expected. But if you cannot change the server, consider using a converter to adapt empty bodies into null using something like this: #1554 (comment)

 

 

Solution : Check api response . Change api and return something and that will solve the problem 🙂

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *