Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not Fetch #78

Open
amirft1374 opened this issue Mar 22, 2022 · 0 comments
Open

Could not Fetch #78

amirft1374 opened this issue Mar 22, 2022 · 0 comments

Comments

@amirft1374
Copy link

amirft1374 commented Mar 22, 2022

Hi,

I tried to make a post request using this button from Grafana cloud v8.4.3.
The post request is used to write point info to the Influxdb cloud, using its API.
To make sure that the problem is not from the Influxdb side, I have written a similar code that runs in Python and works alright.

url = "https://us-east-1-1.aws.cloud2.influxdata.com/api/v2/write?org='ORG’&bucket='BUCKET’&precision=ns" 
custom_header = {"Authorization":"Token ‘#token_value’",
                 "Content-Type": "text/plain; charset=utf-8"  }
data = "    #Arbitrary_DATA"
r = requests.post(url,data,headers=custom_header)

I have also contacted the Grafana support team to make sure that the "Failed to fetch" error is not because of their API. However, they suggested contacting the button panel team and seeking a solution.

The POST request works well for httpbin.org/post, but not for Influxdb requests.
I would appreciate your suggestions in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant