SolarHosting Partner
SolarHosting Partner
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by SolarHosting Partner on 10/31/2023 in #djs-questions
Loop Not behaving correctly.
No description
14 replies
CDCloudflare Developers
Created by SolarHosting Partner on 7/26/2023 in #general-help
Headers Error
Hello, I keep getting the error:
{
success: false,
errors: [
{
code: 6003,
message: 'Invalid request headers',
error_chain: [Array]
}
],
messages: [],
result: null
}
{
success: false,
errors: [
{
code: 6003,
message: 'Invalid request headers',
error_chain: [Array]
}
],
messages: [],
result: null
}
Please help my code:
const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json', 'X-Auth-Email': 'LoveYouCutie@gmail.com', 'X-Auth-Key': 'NOT TODAY'},
body: '{"value":"medium"}'
};

fetch(`https://api.cloudflare.com/client/v4/zones/${zone_identifier}/settings/security_level`, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err))

const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json', 'X-Auth-Email': 'LoveYouCutie@gmail.com', 'X-Auth-Key': 'NOT TODAY'},
body: '{"value":"medium"}'
};

fetch(`https://api.cloudflare.com/client/v4/zones/${zone_identifier}/settings/security_level`, options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err))

1 replies
DIAdiscord.js - Imagine an app
Created by SolarHosting Partner on 5/27/2023 in #djs-questions
read webpage and show body of page as status
I have a page,[ http://freeuk24.listen2myradio.com:6524/7.html] and i want the stauts to refresh every few mins and update to the text on that page... How do you suggest I go about it. I have tried http, https and axios.
3 replies