v5star / rustdesk-api

rustdesk地址薄服务接口,自己架设后,可以方便的管理自己设备ID以及密码
112 stars 44 forks source link

新版客户端登陆后报错:未成功获取地址簿 #1

Open cleloo opened 1 year ago

cleloo commented 1 year ago

能够登陆成功,之前的地址簿能获取出来,但是会一直有个报错:未成功获取地址簿:false 可以试一下最新的客户端复现一下

mizb commented 1 year ago

我也一样的问题。

v5star commented 1 year ago

新版的客户端,获取地址簿是用get,更新地址簿是post,都用调用同一个方法,所以你们自己改的时候,注意一下。我写的有注释。

v5star commented 1 year ago

获取新版本即可解决

cleloo commented 1 year ago

获取新版本即可解决

感谢更新,去测试看看,有问题再来反馈

vaalimusic commented 1 year ago

Version 1.2.2 has the same error, can I somehow fix it?

cleloo commented 1 year ago

Version 1.2.2 has the same error, can I somehow fix it?

Just get the new version of the API and redeploy it.

v5star commented 1 year ago

Version 1.2.2 has the same error, can I somehow fix it?

Just get the new version of the API and redeploy it.

Check out the latest version and test it. If there is a problem, take screenshots.

vaalimusic commented 1 year ago

Hello! This is the error: image

cleloo commented 1 year ago

Check out the latest version and test it. If there is a problem, take screenshots.

Please confirm if the database has been prompted for successful creation, and then log in to the account again

vaalimusic commented 1 year ago

Check out the latest version and test it. If there is a problem, take screenshots.

Please confirm if the database has been prompted for successful creation, and then log in to the account again

Here are the screenshots, the last one shows that an error appears when adding. Version 1.2.2 php 7.4

image image image

cleloo commented 1 year ago

Check out the latest version and test it. If there is a problem, take screenshots.

Please confirm if the database has been prompted for successful creation, and then log in to the account again

Here are the screenshots, the last one shows that an error appears when adding. Version 1.2.2 php 7.4

image image image image Log in to your account again

http://192.168.0.1/index.php?s= Please change this to your server address

vaalimusic commented 1 year ago

Check out the latest version and test it. If there is a problem, take screenshots.

Please confirm if the database has been prompted for successful creation, and then log in to the account again

Here are the screenshots, the last one shows that an error appears when adding. Version 1.2.2 php 7.4 image image image image Log in to your account again

I re-login to my account but the error does not go away

cleloo commented 1 year ago

Check out the latest version and test it. If there is a problem, take screenshots.

Please confirm if the database has been prompted for successful creation, and then log in to the account again

Here are the screenshots, the last one shows that an error appears when adding. Version 1.2.2 php 7.4 image image image image Log in to your account again

I re-login to my account but the error does not go away

image Please change to your server address. If it is arranged within a local area network, please change to a local area network IP address

vaalimusic commented 12 months ago

Check out the latest version and test it. If there is a problem, take screenshots.

Please confirm if the database has been prompted for successful creation, and then log in to the account again

Here are the screenshots, the last one shows that an error appears when adding. Version 1.2.2 php 7.4 image image image image Log in to your account again

I re-login to my account but the error does not go away

image Please change to your server address. If it is arranged within a local area network, please change to a local area network IP address

I changed it, but unfortunately it didn’t help. Any more ideas what could be the problem?

image image

cleloo commented 12 months ago

Can you confirm again if the generated database tables are working properly, and are the RustDesk version and index. php the latest? Being able to log in to the account indicates that I can access the API, but I have not been able to obtain the information in the data table normally. I have deployed it locally and on the server without any issues.

vaalimusic commented 12 months ago

Can you confirm again if the generated database tables are working properly, and are the RustDesk version and index. php the latest? Being able to log in to the account indicates that I can access the API, but I have not been able to obtain the information in the data table normally. I have deployed it locally and on the server without any issues.

I'm using your latest code.

Authorization works for me, and in version 1.2.2 errors appear as in the screenshot.

There are no errors in Version 1.2.0, but the tags and computers added to the address book after relogin disappear and are not added to the database.

v5star commented 12 months ago

There are no errors in Version 1.2.0, but the tags and computers added to the address book after relogin disappear and are not added to the database.

Version 1.2.0 uses post to get the address book, which is depressing. It is recommended to use version 1.2.2 or above.

vaalimusic commented 12 months ago

There are no errors in Version 1.2.0, but the tags and computers added to the address book after relogin disappear and are not added to the database.

Version 1.2.0 uses post to get the address book, which is depressing. It is recommended to use version 1.2.2 or above.

I don't understand anything. I even rewrote the code for mysql and after authorization I still got an error in receiving the address book. Same error from the phone and on other computers. I deployed it on a foreign server and nothing changes. Tell me, can you send a database dump with at least 1 added fake device in the address book?

v5star commented 12 months ago

I don't understand anything. I even rewrote the code for mysql and after authorization I still got an error in receiving the address book. Same error from the phone and on other computers. I deployed it on a foreign server and nothing changes. Tell me, can you send a database dump with at least 1 added fake device in the address book?

If you use mysql, I wrote a version last year that supports rustdesk v1.1.9, you can refer to it and modify it. I will update it to github later. the old version api down from https://v5star.lanzouv.com/iCkiB0g642xc ,Password: 52pj

vaalimusic commented 12 months ago

I don't understand anything. I even rewrote the code for mysql and after authorization I still got an error in receiving the address book. Same error from the phone and on other computers. I deployed it on a foreign server and nothing changes. Tell me, can you send a database dump with at least 1 added fake device in the address book?

If you use mysql, I wrote a version last year that supports rustdesk v1.1.9, you can refer to it and modify it. I will update it to github later. the old version api down from https://v5star.lanzouv.com/iCkiB0g642xc ,Password: 52pj

Thanks, I'll try.

I found out here: From the logs it is clear that the SQL query to search for a token is executed with an empty access_token value, which is the cause of the “Access token not found” error. This means that the $auth_token variable does not contain the correct token when executing the SQL query.

Any ideas on this matter, maybe this information will help somehow?