Alfanous-team / alfanous

Alfanous is an Arabic search engine API provides the simple and advanced search in Quran , more features and many interfaces...
http://www.alfanous.org/
GNU Affero General Public License v3.0
257 stars 89 forks source link

Api seems to be broken #524

Closed arfan closed 3 years ago

arfan commented 3 years ago

Dear Alfanous team,

when I check the api with this url [0] I get errors like this


Request Method: | GET
-- | --
https://www.alfanous.org/api/search?query=%D8%AA%D8%A8%D8%AA%20%D9%8A%D8%AF%D8%A7%20%D8%A7%D8%A8%D9%8A%20%D9%84%D9%87%D8%A8%20%D9%88%D8%AA%D8%A8
1.11.29
ImportError
No module named Outputs
/app/wui/views.py in <module>, line 25
/app/.heroku/python/bin/python
2.7.18
['/app/.heroku/python/bin',  '/app',  '/app/.heroku/python/lib/python27.zip',  '/app/.heroku/python/lib/python2.7',  '/app/.heroku/python/lib/python2.7/plat-linux2',  '/app/.heroku/python/lib/python2.7/lib-tk',  '/app/.heroku/python/lib/python2.7/lib-old',  '/app/.heroku/python/lib/python2.7/lib-dynload',  '/app/.heroku/python/lib/python2.7/site-packages']
 

[0] https://www.alfanous.org/api/search?query=%D8%AA%D8%A8%D8%AA%20%D9%8A%D8%AF%D8%A7%20%D8%A7%D8%A8%D9%8A%20%D9%84%D9%87%D8%A8%20%D9%88%D8%AA%D8%A8

IronFist16 commented 3 years ago

The traceback message is indicating an ImportError :

Exception Type: ImportError
No module named Outputs

The correct name for the module is outputs not Outputs, so it should be: from alfanous.outputs import Raw (outputs with lower case o)

ghost commented 3 years ago

@arfan I will fix this

ghost commented 3 years ago

@arfan please check again