Page MenuHomePhabricator

Citoid fails on https://www.choicehotels.com/
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Generate Citations using visual editor with URL https://www.choicehotels.com/.

Actual Results:

Dialog responds with "We couldn't make a citation for you. You can create one manually using the "Manual" tab above."

Expected Results:

A basic citation using {{cite-web}}.

The error was reported on https://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback#Error_when_adding_citation_in_Choice_Hotels

I've tested the citoid API using my https://en.wikipedia.org/wiki/User:Salix_alba/Citoid.js script. The ajax call to
https://en.wikipedia.org/api/rest_v1/data/citation/mediawiki/https%3A%2F%2Fwww.choicehotels.com%2F?action=query&format=json

Fails with a response message of
"{\"type\":\"https://mediawiki.org/wiki/HyperSwitch/errors/not_found\",\"title\":\"Not found.\",\"method\":\"get\",\"uri\":\"/en.wikipedia.org/v1/data/citation/mediawiki/https%3A%2F%2Fwww.choicehotels.com%2F\"}"

Event Timeline

This seems like a mismatch between the rest api router and the answer that citoid is providing for this specific website. We will need someone to retrieve the internal Citoid response for this request....

This is actually Citoid reporting a 404 for that website. I haven't looked to deep in it, but it seems that the website has troubles producing something meaningful if not retrieved by a browser. @Mvolz could you look into this?

TheDJ claimed this task.

Now returns

"[{"url":"https://www.choicehotels.com/","itemType":"webpage","title":"Choice Hotels® – Find Hotel Rooms & Reservations","abstractNote":"Choice Hotels® offers great hotel rooms at great rates. Find & book your hotel reservation online today to get our Best Internet Rate Guarantee!","websiteTitle":"Choice Hotels","language":"en","accessDate":"2025-05-03","archiveUrl":"http://web.archive.org/web/20250428052354/https://www.choicehotels.com/","archiveDate":"2025-04-28","source":["Wayback Machine","citoid"]}]"

So effectively fixed i guess ?