Giter VIP home page Giter VIP logo

Comments (6)

mikhail-vl avatar mikhail-vl commented on June 1, 2024

@greg-violette Hello, do you have headers for the Initial Request with empty name in Panel's options? Or is it replaced with Empty Variables?

Looks like we are missing check for the parameter.name and Fetch API gave you Invalid name error.

    options.initial.header?.forEach((parameter) => {
      headers.set(replaceVariables(parameter.name), replaceVariables(parameter.value));
    });

from volkovlabs-form-panel.

greg-violette avatar greg-violette commented on June 1, 2024

I just have one header and it is a static value. Here is an excerpt from my json export
"contentType": "application/json", "header": [ { "name": "X-VSF-API-Token", "value": "YTc4ZmU1NGUtYjFkZC00YjlkLWI3M2YtZWNkZmFiZDE3MWQ0" } ], "highlight": false,

from volkovlabs-form-panel.

mikhail-vl avatar mikhail-vl commented on June 1, 2024

@greg-violette Thank you. I will take a look today and get back to you shortly.

from volkovlabs-form-panel.

greg-violette avatar greg-violette commented on June 1, 2024

OK, thanks. On another note, is there any dcoumentation on the Code Editor data type? I need to pass in a json array of objects and I was thinking the Code Editor may be the way to do that but I'm getting errors calling my API endpoint.
Thanks.

from volkovlabs-form-panel.

mikhail-vl avatar mikhail-vl commented on June 1, 2024

@greg-violette I reproduced the error when added Header Parameters has empty name field. Fixed in #85.

Code Editor is implemented using Monaco Code Editor, which is a part of the Grafana. You can choose Language `JSON` or `Javascript`. I just tested using JSON and it works as expected converting text into string like:
{
    "code": "<html>\n  <div>\n  </div>\n</html>\n"
}

Please let me know if there is anything else.

from volkovlabs-form-panel.

mikhail-vl avatar mikhail-vl commented on June 1, 2024

@greg-violette Fix for Request Header merged and will be a part of the upcoming release.

Please let me know if you able to fix the Code Editor errors and if there is anything else.

from volkovlabs-form-panel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.