apache / apache/linkis

[Bug] The call to the linkis-bml-client module deleteResource and getversions methods failed

Open
#2,591 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
3.4k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### Search before asking

- [X] I searched the [issues](https://github.com/apache/incubator-linkis/issues) and found no similar issues.

### Linkis Component

linkis-public-enhancements

### What happened + What you expected to happen

dev-1.2.0 linkis-bml-client
the call to the linkis-bml-client module deleteResource and getversions methods failed

(1)bmlClient.deleteResource(username,engineConnBmlResource.getBmlResourceId())
Error:
![捕获](https://user-images.githubusercontent.com/63859058/182790543-e7ba11bf-0159-488e-b943-b5834bd2a1b6.PNG)
Possible cause of the error:
The request is in the wrong format
![捕获4](https://user-images.githubusercontent.com/63859058/182793294-8dec83ee-8245-40bd-a233-3a5cafcd231b.PNG)

(2)bmlClient.getVersions(userName, bmlResourceId)
error:
![捕获2](https://user-images.githubusercontent.com/63859058/182790700-d23e7261-778e-4b5c-bb7b-40997adf01a6.PNG)
Possible cause of the error:
Could not get the information for the logged-in user correctly
![捕获3](https://user-images.githubusercontent.com/63859058/182790910-385715cc-994f-46b0-8b9f-940cab8cff1d.PNG)

### Relevent platform

dev-1.2.0

### Reproduction script

private BmlClient bmlClient = BmlClientFactory.createBmlClient();
bmlClient.deleteResource(username,engineConnBmlResource.getBmlResourceId())
bmlClient.getVersions(userName, bmlResourceId)

### Anything else

_No response_

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.