Wopi 404

Why do I use wopi to return 404, such as this address http://myofficeserver/api/2.0/authentication.json,
And where to see for username and password

@yuhui
Please clarify what are trying to achieve?

API COMMUNITY SERVER
POST api/2.0/authentication

https://api.onlyoffice.com/portals/method/authentication/post/api/2.0/authentication

[1] image_2023-08-22_17-20-27


[2]

This link may be useful to you
https://forum.onlyoffice.com/t/get-file-with-api-or-wopi/3500/5

i wang to use api to get a file download link, so I need to get a token
but zhe api is still returning 404 ,my postman configuration is as follows


I suspect there is an issue with the configuration of my onlyOffice service
my onlyoffice is 7.3.3 for windows

@yuhui hmm…

  1. Please specify the version of Community Server you are using.
  2. user login via mail or LDAP/SSO?
  3. check /apisystem/api/portal/test

like this
https://yourPortal/apisystem/api/portal/test

@Nikolas hi,Nikolas,when i post to : http://172.20.6.195/api/2.0/authentication,the response is {
“status”: 1,
“statusCode”: 500,
“error”: {
“message”: “User authentication failed”,
“hresult”: -2146233087,
“data”: {}
}
}
then i chek http://172.20.6.195/apisystem/api/portal/test, server return Error 404.Page not found . i deploy onlyoffice on windows server 2022 with ONLYOFFICE_Workspace_Win-install.latest.ONLYOFFICE version:12.5.1228,please help ,thanks Nikolas :slightly_smiling_face:


@Nikolas
i have fixed this,i made a mistake on the userName value!
userName is email field in core_user table

1 Like

Hello @zhixiao
I apologize for not noticing your comment earlier, but I want to express my gratitude for taking the time to supplement the question with found solution. I’m sure it will greatly benefit our community!

Thank you!