[SOLVED] Prerender action: An invalid request URI was provided

I have…

  • Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • Documentation issue or request

Current behavior

Prerender action method failed on rules after publishing content.
this is the link for prerender api: What can I do with Prerender.io Rest API? - Features and Functionalities

Request:
POST: /recache HTTP/1.1
Content-Type: application/json; charset=utf-8

{
“prerenderToken”: “xxxxxx”,
“url”: “https://swaminarayan.me/books/indian-philosophy
}

Response:

System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.
at System.Net.Http.HttpClient.PrepareRequestMessage(HttpRequestMessage request)
at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at Squidex.Extensions.Actions.RuleHelper.OneWayRequestAsync(HttpClient client, HttpRequestMessage request, String requestBody, CancellationToken ct) in /src/extensions/Squidex.Extensions/Actions/RuleHelper.cs:line 71

Error: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.

Elapsed 00:00:00.

Expected behavior

It should be recache page on prerender.io

Minimal reproduction of the problem

Environment

  • Self hosted with docker
  • Self hosted with IIS
  • Self hosted with other version
  • Cloud version

Version: [VERSION]

Browser:

  • Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • Edge

Others:

I can reproduce it. But until this is deployed I would just go for a normal webhook request. it is should be straight forward.

1 Like