pcbook-java
pcbook-java copied to clipboard
404
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 ?
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
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 ?