pcbook-java icon indicating copy to clipboard operation
pcbook-java copied to clipboard

404

Open dumihi313 opened this issue 5 years ago • 2 comments

I got this exception after declare requestObserver UNIMPLEMENTED: HTTP status code 404 invalid content-type: text/plain; charset=utf-8 headers: Metadata(:status=404,content-type=text/plain; charset=utf-8,x-content-type-options=nosniff,content-length=19,date=Thu, 19 Nov 2020 06:10:58 GMT) DATA----------------------------- 404 page not found Im working on client, how to fix it ?

dumihi313 avatar Nov 19 '20 07:11 dumihi313

Hi dumihi,

From the error message, I think maybe your service handler on the server-side is not implemented.

Make sure you have implemented something like this: https://github.com/techschool/pcbook-java/blob/master/src/main/java/com/gitlab/techschool/pcbook/service/LaptopService.java

Please watch this video to see how I implemented it: https://www.youtube.com/watch?v=cweoyLhAbR0

techschool avatar Nov 19 '20 09:11 techschool

Thank you, i found this cause that I need to set up other stub with other host and port. I followed your uploadLaptop function in LaptopClient.class. Everything call work I received a sequence of request grpc during call and this also runned into requestObserver.onCompleted();. But no exception or onNext be called. I dont know why ?

dumihi313 avatar Nov 19 '20 17:11 dumihi313