Developer forum

Forum » Dynamicweb 10 » 'An invalid request URI was provided' error when running an integration activity from DW9 on 10

'An invalid request URI was provided' error when running an integration activity from DW9 on 10

Davy Capiau
Reply

Hi,

When I copy a job from DW9 to 10 I get the error below. Creating a new job in 10 from the backend doesn't return any error.

How can I update the 9-files to be compatible with 10?

 

ERROR:

2025-05-21 16:31:44.6211: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.. 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, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at Dynamicweb.Scheduling.ScheduledTaskAddIns.UrlScheduledTaskAddIn.Run()
   at Dynamicweb.Scheduling.AddInJob.Execute()
2025-05-21 16:31:44.6249: Request headers: [
  "Accept",
  "Accept-Encoding",
  "Accept-Language",
  "Authorization",
  "Connection",
  "Content-Length",
  "Content-Type",
  "Cookie",
  "Host",
  "Referer",
  "User-Agent",
  "sec-ch-ua-platform",
  "sec-ch-ua",
  "dnt",
  "sec-ch-ua-mobile",
  "origin",
  "sec-fetch-site",
  "sec-fetch-mode",
  "sec-fetch-dest",
  "priority"
]
2025-05-21 16:31:44.6265: Request item keys: [
  "DW_Current_ExecutionTable"
]
2025-05-21 16:31:44.6267: Request form: []


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Can you show the configuration of the job?

Is it using an absolute URI or is the base address set of the job as the exception indicates?

BR Nicolai

 
Davy Capiau
Reply

HI Nicolai,

Attached you find an example job xml

I don't fully understand your question, because I don't see how you would configure this at the integration activity level: 'Is it using an absolute URI or is the base address set of the job as the exception indicates?' 

File paths were updated after copying it to DW10.

Kr

Davy

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Davy,
I have tried to open your attached job in DW10 and it was working fine for me. So it looks like your problem is connected with a scheduled task that runs this job and that task was created in DW9 and it is tried to be run in DW10, however that is not always backwards compatible, so you can try to recreate the same scheduled task in DW10 instead and check if the problem is solved.
BR, Dmitrij

Votes for this answer: 1
 
Davy Capiau
Reply

Hi guys,

Indeed the linked scheduled task was the issue. After deletion it worked fine.

 

You must be logged in to post in the forum