Skip to content

404 #1

Description

@dumihi313

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 ?

Activity

  1. techschool commented on Nov 19, 2020

    @techschool
    Owner

    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

  2. dumihi313 commented on Nov 19, 2020

    @dumihi313
    Author

    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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions