You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/10/08 00:50:33 UTC
[GitHub] [incubator-devlake] hezyin opened a new issue, #3314: [Bug][API] GET /blueprints 500 Internal Server Error
hezyin opened a new issue, #3314:
URL: https://github.com/apache/incubator-devlake/issues/3314
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
### What happened
After I successfully created a blueprint with advanced mode, Config UI started to get 500 internal server errors from the backend.
I tried deleting that newly created blueprint, and everything went back to normal.
<img width="2299" alt="Screen Shot 2022-10-07 at 5 46 20 PM" src="https://user-images.githubusercontent.com/2908155/194679125-dfa4b2dc-8786-47af-9151-2cd65918d5a5.png">
The error message from the backend:
<img width="669" alt="Screen Shot 2022-10-07 at 5 45 51 PM" src="https://user-images.githubusercontent.com/2908155/194679132-10dbdd93-047f-43e6-8dde-895faad088c1.png">
### What you expected to happen
GET /blueprints returns successfully.
### How to reproduce
**Version: v0.14.0-alpha1**
Installation method: docker-compose
I created the blueprint with the following curl command:
```
{
"enabled": true,
"mode": "ADVANCED",
"name": "My Bitbucket Blueprint",
"cronConfig": "",
"isManual": true,
"plan":
[
[
{
"plugin": "bitbucket",
"options": {
"repo": "incubator-devlake",
"owner": "yinhezheng",
"connectionId": 2
}
}
]
]
}
```
### Anything else
_No response_
### Version
main
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] hezyin closed issue #3314: [Bug][API] GET /blueprints 500 Internal Server Error
Posted by GitBox <gi...@apache.org>.
hezyin closed issue #3314: [Bug][API] GET /blueprints 500 Internal Server Error
URL: https://github.com/apache/incubator-devlake/issues/3314
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] likyh commented on issue #3314: [Bug][API] GET /blueprints 500 Internal Server Error
Posted by GitBox <gi...@apache.org>.
likyh commented on issue #3314:
URL: https://github.com/apache/incubator-devlake/issues/3314#issuecomment-1272469987
You need use this json to create blueprint.
```json
{
"enabled": true,
"mode": "ADVANCED",
"name": "My Bitbucket Blueprint",
"cronConfig": "",
"isManual": true,
"plan": [
[
{
"plugin": "bitbucket",
"options": {
"repo": "incubator-devlake",
"owner": "yinhezheng",
"connectionId": 2
}
}
]
],
"settings": {
"version": "1.0.0",
"connections": []
}
}
```
``` "settings": {
"version": "1.0.0",
"connections": []
}``` added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] hezyin commented on issue #3314: [Bug][API] GET /blueprints 500 Internal Server Error
Posted by GitBox <gi...@apache.org>.
hezyin commented on issue #3314:
URL: https://github.com/apache/incubator-devlake/issues/3314#issuecomment-1275264268
@likyh Thanks. I've verified that adding the `settings` section solved the issue. Closing the issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] likyh commented on issue #3314: [Bug][API] GET /blueprints 500 Internal Server Error
Posted by GitBox <gi...@apache.org>.
likyh commented on issue #3314:
URL: https://github.com/apache/incubator-devlake/issues/3314#issuecomment-1272316051
"unexpected end of JSON input" means curl body is not a json. Maybe "]" or other char miss in POST body. So it is not a bug.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-devlake] likyh commented on issue #3314: [Bug][API] GET /blueprints 500 Internal Server Error
Posted by GitBox <gi...@apache.org>.
likyh commented on issue #3314:
URL: https://github.com/apache/incubator-devlake/issues/3314#issuecomment-1272470409
settings decode separately now. I'll add a check when added to tell users this column is needed. Now you can add it to use it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org