github-actions[bot] commented on issue #15917:
URL: 
https://github.com/apache/dolphinscheduler/issues/15917#issuecomment-2077033978

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   I tried to create an http alert, using the httppost method
   Check the browser console: the 
http://192.168.164.128:12345/dolphinscheduler/alert-plugin-instances/test-send 
interface is called
   Request input parameters:
   pluginDefineId: 9
   pluginDefineId: 
[{"props":{"disabled":null,"type":null,"maxlength":null,"minlength":null,"clearable":null,"prefixIcon":null,"suffixIcon":null
 
,"rows":null,"autosize":null,"autocomplete":null,"name":null,"readonly":null,"max":null,"min":null,"step":null,"
 
resize":null,"autofocus":null,"form":null,"label":null,"tabindex":null,"validateEvent":null,"showPassword":null,"placeholder":"input
 request URL" 
,"size":"small"},"field":"url","name":"URL","type":"input","title":"$t('url')","value
 
":"http://192.168.153.1:8080/alert/common","validate":[{"required":true,"type":"string","trigger":"blur","min":
 
null,"max":null}],"emit":null},{"props":{"disabled":null,"type":null,"maxlength":null,"minlength":null,"clearable"
 
:null,"prefixIcon":null,"suffixIcon":null,"rows":null,"autosize":null,"autocomplete":null,"name":null,"readonly":null,"max":null
 
,"min":null,"step":null,"resize":null,"autofocus":null,"form":null,"label":null,"tabindex":null,"validateEvent":null,"
 showPassword":null,"placeholder":
 "input request type POST or 
GET","size":"small"},"field":"requestType","name":"request 
method","type":"input 
","title":"$t('requestType')","value":"POST","validate":[{"required":true,"type":"string","trigger":"blur
 
","min":null,"max":null}],"emit":null},{"props":{"disabled":null,"type":null,"maxlength":null,"minlength"
 
:null,"clearable":null,"prefixIcon":null,"suffixIcon":null,"rows":null,"autosize":null,"autocomplete":null,"name":null,"readonly":null
 
,"max":null,"min":null,"step":null,"resize":null,"autofocus":null,"form":null,"label":null,"tabindex":null,"
 validateEvent":null,"showPassword":null,"placeholder":"input request headers 
as JSON format","size":"small"},"field":"headerParams","name":"request header", 
"type":"input","title":"$t('headerParams')","value":"{\"Content-Type\":\"application/json;charset=UTF-8\",
 \"Authorization\":\"Bearer 
ZvG-MM-04czAP90u4P2qsENvwabFlLvMNSORyLJ0TRGG2QSUmmdRsJtdwzVg\"}","validate":[{"required":true,"type":"string","trigger":"blur"
 ,"min":null,"m
 
ax":null}],"emit":null},{"props":{"disabled":null,"type":null,"maxlength":null,"minlength":
 
null,"clearable":null,"prefixIcon":null,"suffixIcon":null,"rows":null,"autosize":null,"autocomplete":null,"name":null,"readonly":null,
 
"max":null,"min":null,"step":null,"resize":null,"autofocus":null,"form":null,"label":null,"tabindex":null,"validateEvent
 ":null,"showPassword":null,"placeholder":"input request body as JSON 
format","size":"small"},"field":"bodyParams","name":"request body"," 
type":"input","title":"$t('bodyParams')","value":"{\"name\": 
\"zhangsan\",\"value\": \"not ok\ " 
}","validate":[{"required":false,"type":"string","trigger":"blur","min":null,"max":null}],"emit":
 
null},{"props":{"disabled":null,"type":null,"maxlength":null,"minlength":null,"clearable":null,"prefixIcon":null,"suffixIcon":null
 
,"rows":null,"autosize":null,"autocomplete":null,"name":null,"readonly":null,"max":null,"min":null,"step":null,"
 resize":null,"autofocus":null,"form":null,"label":null,"tabindex":null,"
 validateEvent":null,"showPassword":null,"placeholder":"input alert msg field 
name","size":"small"},"field":"contentField","name":"content 
field","type":"input","title":"$t('contentField')" 
,"value":"zhangsan-TEST","validate":[{"required":true,"type":"string","trigger":"blur","min":null,"max":null
 }],"emit":null},{"props":null,"field":"timeout","name":"Timeout 
(seconds)","type":"input-number","title" 
:"$t('timeout')","value":60,"validate":[{"required":false,"type":"number","trigger":"blur","min":null
 ,"max":null}],"emit":null}]
   Configuration screenshot:
   
![111](https://github.com/apache/dolphinscheduler/assets/15133762/9e96262f-17e0-4e53-ae2f-f2578052811d)
   Response screenshot:
   
![2222](https://github.com/apache/dolphinscheduler/assets/15133762/79dc93ae-35e2-4d3b-9171-1ace04d7bb89)
   Screenshot of the information I request using apipost:
   
![333](https://github.com/apache/dolphinscheduler/assets/15133762/2b5d39d0-d9f4-407a-a232-a5e22b7254a6)
   My interface methods & log screenshots:
   
![444](https://github.com/apache/dolphinscheduler/assets/15133762/06fbe501-90ab-4aa9-a24b-bec8dd2a4a05)
   Version 3.2.1 of dolphinscheduler
   Deploy the docker version on the virtual machine
   
   ### What you expected to happen
   
   The test interface sends the request that should be sent from the api server 
to my server address. But it seems that the results are not handled well. 
That's why the error was reported.
   
   ### How to reproduce
   
   Handle the interface return value. Define what the correct return value is 
and document it. Currently the document only has two screenshots.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.2.x
   
   ### Are you willing to submit PR?
   
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to