You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm able to get this working using Postman super-easy. I can use JS too, but that requires CORS. This module does the service call server-side, but I think I'm missing something super-obvious.
2020-09-08 17:51:25.664-04:00 [SERVERNAME][D:8][T:108][ERROR] Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper -
The remote server returned an error: (400) Bad Request. System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendRequest(String serviceUrl, String method, String data, String contentType, Dictionary`2 customHeaders, WebProxy proxy, Int32 timeout)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 167
2020-09-08 17:51:25.680-04:00 [SERVERNAME][D:8][T:108][ERROR] Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper -
Error SendRequest: The remote server returned an error: (400) Bad Request. System
System.ArgumentException: Error SendRequest: The remote server returned an error: (400) Bad Request. System
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendRequest(String serviceUrl, String method, String data, String contentType, Dictionary`2 customHeaders, WebProxy proxy, Int32 timeout)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 177
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendWithData[T](String uri, String method, String data, String contentType, Dictionary`2 customHeaders)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 82
2020-09-08 17:51:25.680-04:00 [SERVERNAME][D:8][T:108][DEBUG] Upendo.Modules.CloudFlareClearCache.Services.CloudFlareController -
Upendo.Modules.CloudFlareClearCache.Services.ServiceResponse`1[Upendo.Modules.CloudFlareClearCache.Models.CloudFlareResponse]
2020-09-08 17:51:25.680-04:00 [SERVERNAME][D:8][T:108][ERROR] Upendo.Modules.CloudFlareClearCache.Services.CloudFlareController -
EXCEPTION: Error SendRequest: The remote server returned an error: (400) Bad Request. System |
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendRequest(String serviceUrl, String method, String data, String contentType, Dictionary`2 customHeaders, WebProxy proxy, Int32 timeout)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 177
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendWithData[T](String uri, String method, String data, String contentType, Dictionary`2 customHeaders)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 82
System.Exception: EXCEPTION: Error SendRequest: The remote server returned an error: (400) Bad Request. System |
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendRequest(String serviceUrl, String method, String data, String contentType, Dictionary`2 customHeaders, WebProxy proxy, Int32 timeout)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 177
at Upendo.Modules.CloudFlareClearCache.Services.ServiceHelper.SendWithData[T](String uri, String method, String data, String contentType, Dictionary`2 customHeaders)
in C:\Work\DNN.Modules\CloudFlareCache\Modules\CloudFlareClearCache\Services\ServiceHelper.cs:line 82
The text was updated successfully, but these errors were encountered:
I'm able to get this working using Postman super-easy. I can use JS too, but that requires CORS. This module does the service call server-side, but I think I'm missing something super-obvious.
CloudFlare API Endpoint: https://api.cloudflare.com/#zone-purge-all-files
The text was updated successfully, but these errors were encountered: