Replies: 2 comments 16 replies
-
Hi @SaM-0777 Maybe you made a small mistake and are requesting a POST via GET? (although in that case it should be 405) Or wrong URL .. that's all what can cause 404 error. |
Beta Was this translation helpful? Give feedback.
1 reply
-
So, you make the request against your Next.js Route Handlers, when it doesn't use grpc, and it works, but as soon as you import grpc, making the same request yields 404? const ARTICLES_PROTO_PATH = path.resolve(__dirname, "../proto/articles.proto"); Here, perhaps, you want to use |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I have defined an POST route
src/api/article/route.ts
This route is working fine But when I call a function that uses @grpc/grpc-js then when I make a request it responds with 404 Not_Found error.
Here is the code with @grpc/grpc-js
src/api/article/route.ts
src/grpc-services/article-services.ts
src/grpc-client/article-client
But when I try to make the same request from Nextjs API route then I get 404 response and there is no error logged in the console.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions