Comments (6)
@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.
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.
@greg-violette Thank you. I will take a look today and get back to you shortly.
from volkovlabs-form-panel.
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.
@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.
@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)
- Select with custom option is not working HOT 2
- Host problems HOT 3
- How to update Text Area from GET request? HOT 3
- Hidden inputs [Question] HOT 2
- Is there a way to use the time picker with "custom formats" like: "MM/yyyy"? HOT 1
- Consider adding additional Set/Clear buttons
- Consider allowing user to select the set/unset color for Radio Group elements
- Multiple lines in read-only or read-only in text area HOT 2
- How do I extract return value after doing POST? HOT 2
- Having trouble to make PUT REST call work in Data manipulation Panel HOT 1
- Increase Test Coverage and update Test library
- Storing secrets for API authentication HOT 2
- Data manipulation connection with influxdb HOT 3
- Check box and Custom parameter add in check box
- feature request: multi select dropdown
- Fetch from Grafana and not from browser HOT 1
- Feature Request: Send Auth Token HOT 1
- Consider adding a "notifyWarning()" function HOT 1
- Enhanced Control of Form Elements Based on User Selection/Update
- Authentication to Get/Post Request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volkovlabs-form-panel.