1
0
mirror of https://github.com/gusaul/grpcox.git synced 2024-12-25 09:50:10 +00:00

Fixed behaviour then describe of procedure is required for making request. If describe got error anyway generate empty data editor box.

Describe can got error if grpc-server cant reflect request messages, e.g. actual python's `Symbol not found` error.
This commit is contained in:
r9deyes 2023-09-22 19:29:01 +03:00 committed by Andriyanov Danil
parent 6feae4127c
commit 4c5a97cd85

View File

@ -131,8 +131,13 @@ $('#select-function').change(function(){
method: "GET",
success: function(res){
if (res.error) {
alert(res.error);
return;
// on error generate empty editor. Fail of reflection should not interrupt request try.
console.log("Cant describe "+selected+" procedure: ", res.error)
res.data = {
template: "",
schema: ""
}
}
generate_editor(res.data.template);