apache / apache/servicecomb-java-chassis

接口契约测试成功但请求网关NOT FOUND org.apache.servicecomb.common.rest.locator.OperationLocator ERROR - locate path failed, status:Not Found

Open
#4,201 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

自定义业务接口在serviceComb的契约测试成功
![image](https://github.com/apache/servicecomb-java-chassis/assets/34705970/9ae6db35-bc98-4ee3-88ce-f5b893e80664)

但通过网关请求会报这个错误 :
org.apache.servicecomb.common.rest.locator.OperationLocator ERROR - locate path failed, status:Not Found, http method:POST, path:/je/instruct/conveyInstuction/saveConveyInstruction/, microserviceName:srm

![1706184254301](https://github.com/apache/servicecomb-java-chassis/assets/34705970/916e6e5c-c86a-4ac6-a295-0282ef7f4321)

请问是什么原因

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with org.apache.servicecomb.common.rest.locator.OperationLocator and compare the successful contract-test route with the POST path sent through the gateway. Check the reported microservice name, HTTP method, and trailing slash while tracing the gateway request. Done means the cause of the route mismatch is identified and the gateway request resolves successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.