Comments (2)
The issue you're encountering with the GET endpoint /plugins/jira/connections/{connectionId}/scope-configs/{id}
returning a 400 error with the message "missing path variable scopeConfigId" is due to a misinterpretation of the path variable. The correct path variable should be {id}
, not {scopeConfigId}
.
Steps to Resolve
-
Ensure Correct Path Variable: Make sure that the request URL uses
{id}
as the path variable, not{scopeConfigId}
. The correct URL should be:/plugins/jira/connections/{connectionId}/scope-configs/{id}
-
Check for Misconfiguration or Bug: If the error message still mentions "missing path variable scopeConfigId", it might be due to a misconfiguration or a bug in the error handling logic. The
extractConfigParam
function is responsible for extracting and validating theconnectionId
andid
parameters from the path variables. If these parameters are invalid, the function returns an error. -
Verify Endpoint Configuration: Ensure that the endpoint is correctly configured in the routing setup. The route should be defined as follows:
// GetScopeConfig return one scope config // @Router /plugins/jira/connections/{connectionId}/scope-configs/{id} [GET] func GetScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { return dsHelper.ScopeConfigApi.GetDetail(input) }
Additional Information
-
Unit Tests: There are unit tests for the
GetScopeConfig
endpoint, and they pass successfully. The relevant test isTestCreateScopeConfig
, which includes a call toGetScopeConfig
to verify the created scope configuration. -
Logging and Debugging: Ensure that logging is enabled to capture more detailed information about the error. Adjust the
LOGGING_LEVEL
andLOGGING_DIR
settings in the configuration file to capture detailed logs.
If the issue persists, it might be helpful to review the middleware or routing configurations that could be affecting the path variable resolution. Additionally, checking for any recent changes or commits in the repository that might have introduced this issue could provide further insights.
Details
Sources
- backend/plugins/jira/api/scope_config_api.go
- backend/test/e2e/remote/python_plugin_test.go
- backend/server/services/remote/plugin/scope_config_api.go
- backend/plugins/jira/impl/impl.go
- config-ui/src/api/plugin/jira/index.ts
- backend/impls/logruslog/init.go
- devops/releases/lake-v0.18.0/env.example
- devops/releases/lake-v0.13.0/env.example
- devops/releases/lake-v0.15.0/env.example
- backend/plugins/tapd/api/scope_config_api.go
- backend/helpers/pluginhelper/api/scope_generic_helper.go
- backend/plugins/github/api/scope_config_api.go
- backend/plugins/azuredevops_go/api/scope_config_api.go
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from incubator-devlake.
Fixed by #7498
from incubator-devlake.
Related Issues (20)
- [Refactor][DORA] Refactor CalculateChangeLeadTimeMeta subtask HOT 2
- [Feature][PagerDuty] Change Incident Times HOT 4
- [Bug][PagerDuty] not enough info for Pagerduty execution (400) HOT 3
- [Bug][Module Name] AxiosError: Request failed with status code 500 HOT 2
- [Bug][CircleCI] CircleCI regex is not working to collect data HOT 3
- [Feature][StarRocks] support starrocks replication num
- [Feature][CustomizePlugin] Data extraction 'rawDataParams' does not support wild cards
- [Bug][GitLab] account ID is not normalized HOT 1
- [Bug][SonarQube] subtask convertIssueCodeBlocks ended unexpectedly HOT 1
- [Bug][Sonarqube] data too long HOT 5
- [Bug][opsgenie] Testing API Key not working HOT 2
- [Bug][API] GET /projects exposes GitLab token in the gitextractor plugin HOT 1
- [Bug][Jenkins] MavenModuleSet should be treated as a scope HOT 3
- [Bug][Jenkins] ValidateTaskOptions not working as expected HOT 2
- [Bug][Bitbucket Server] Activities collector fails when PR is corrupt HOT 7
- [Question][REST API] I can't find a way to attach Connection to DevLake Project. HOT 7
- [Bug][gitextractor] Unable to disable CollectDeployment HOT 1
- [Bug][Pager Duty] Not able to delete the Pager Duty connection HOT 1
- [Feature][Kanbanize] Add kanbanize support HOT 1
- [Feature][Sentry]New Data Sources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-devlake.