Closed msabur closed 2 years ago
This is strange as nawawi40
is still returned as a valid collection from the collections list endpoint. I'll give this a few days and implement the workaround you proposed if the problem has still not been rectified on the API side by then.
When I use the command
-hadith nawawi 1
, the bot says that the hadith can't be found. I looked into it a bit, and it seems that the API was giving a 404 response. A possible solution is using "forty" instead of "nawawi40" as the collection name when making the request. That solved the error for me.https://api.sunnah.com/v1/collections/nawawi40/hadiths/1
returned 404https://api.sunnah.com/v1/collections/forty/hadiths/1
gave the hadithMay Allah reward you for your amazing work