Open LaurensCosta opened 3 years ago
Which version of the package do you use? What is the error in the log?
Hi Mãris,
Where can I see which version I use?
Last Friday I got some redirects uploaded but still sometimes get an error. Could it be there is a maximum of redirects?
Greetings,
Laurens
Kind regards / Met vriendelijke groet,
Laurens Costa Digital Marketeer
Spirotech BV Churchill-laan 52 5705 BK Helmond Netherlands
T:+31 492 578 989 M: +31 653926187 W: www.spirotech.com
Follow us on Social Media:
From: Māris Krivtežs @.> Sent: Monday, June 28, 2021 07:52 To: Geta/404handler @.> Cc: Laurens Costa @.>; Author @.> Subject: Re: [Geta/404handler] Not able to upload XML file (#217)
Which version of the package do you use? What is the error in the log?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Geta/404handler/issues/217#issuecomment-869377517, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUTJDSHEIKAJAHRLYWEIQKTTVAEYZANCNFSM47HYS4VQ.
The developers of the project should be able to see what version is used and also should be able to inspect logs.
@LaurensCosta You check the response of the ImportRedirects endpoint, you could find the error.
@marisks This issue happened to me too. I'm using 11.3.0. The error for me was: [ArgumentException]: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at BVNetwork.NotFound.Core.CustomRedirects.RedirectsXmlParser.Load() at BVNetwork.NotFound.Controllers.NotFoundRedirectController.ImportRedirects(HttpPostedFileBase xmlfile)
Hope this helps.
As a workaround, I found I had to remove dupes in the XML file - using the following XPath in Visual Studio Code with the XML Tools extension works: //url/old[text()=following::old or text()=preceding::old].
Today I tried to upload some redirects (after downloading the existing redirects and adding new redirects. This worked fine but when I wanted to do the "trick" one more time I got an error on the upload. First I thought I needed to permanently delete all custom redirects but even after I did this I got an error on the upload.
Does anybody knows what I can do to fix this?