eliashaeussler / cache-warmup

🔥 PHP library to warm up caches of URLs located in XML sitemaps

Home Page:https://cache-warmup.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]

jamaluddinrumi opened this issue · comments

PHP version

Package version

2.7.1

Application

Docker

Operating system

Ubuntu 22.04.3 LTS

Current behavior

In MalformedXmlException.php line 39:
                                                                               
  The string "{"total":1076}" does not contain valid XML: The string "{"total  
  ":1076}" does not contain valid XML: DOMDocument::loadXML(): Start tag expe  
  cted, '<' not found in Entity, line: 1        

Artboard

Expected behavior

No response

Steps to reproduce

No response

Additional context

No response

Hi @jamaluddinrumi, can you elaborate on what the actual error is that you encountered? It looks to me like the response of the parsed XML sitemap is JSON instead of XML. This is of course something the parser cannot handle.

hi @eliashaeussler nice to having your reply.

this is the sitemap https://www.indomascot.com/sitemap-index.xml

is there anything wrong?

Screenshot 2024-01-25 at 22 55 31

i got it

it's my mistakes

since warm-cache can only parse xml-like, i should not give it to parse json 😂