Problems generating client #99

Open
opened 2025-06-13 17:46:32 +08:00 by eduardoyet · 12 comments
eduardoyet commented 2025-06-13 17:46:32 +08:00 (Migrated from github.com)

I installed your INCREDIBLE software, but i have a problem.

When i did a generation of a client it fails.

I have this error:

Image

Thank you for your help!!!!

I installed your INCREDIBLE software, but i have a problem. When i did a generation of a client it fails. I have this error: ![Image](https://github.com/user-attachments/assets/f2315a25-1839-4f7d-af2e-f2e43f44a33c) Thank you for your help!!!!
bryangerlach commented 2025-06-16 22:59:53 +08:00 (Migrated from github.com)

Your GENURL is not setup correctly or your sever is not accessible from the internet.

Your GENURL is not setup correctly or your sever is not accessible from the internet.
eduardoyet commented 2025-06-20 22:25:51 +08:00 (Migrated from github.com)

I tried with a install and i had a lot problems.

Then, i installed with docker. I have tthe same error. This is my configuration:

Image

Image

The GENURL in the docker-compose-yml is like this:

GENURL: "rustdesk.mydomain.com:8000"

Image

Any idea??

Thanks!!!

I tried with a install and i had a lot problems. Then, i installed with docker. I have tthe same error. This is my configuration: ![Image](https://github.com/user-attachments/assets/108035a9-7a9d-4f24-9be6-25779836f365) ![Image](https://github.com/user-attachments/assets/0e69cf4a-325b-4171-9dec-a575b3e59072) The GENURL in the docker-compose-yml is like this: GENURL: "rustdesk.mydomain.com:8000" ![Image](https://github.com/user-attachments/assets/20bf7552-5cae-4b90-96ae-ccbb29546735) Any idea?? Thanks!!!
Parav1s commented 2025-06-27 14:30:26 +08:00 (Migrated from github.com)

found a solution?

found a solution?
bryangerlach commented 2025-06-27 22:30:40 +08:00 (Migrated from github.com)

Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front.

Setup instructions

Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front. [Setup instructions](https://github.com/bryangerlach/rdgen/blob/master/setup.md)
Parav1s commented 2025-06-28 16:43:02 +08:00 (Migrated from github.com)

Thank you very much. Problem solved. You are the best.

Thank you very much. Problem solved. You are the best.
eduardoyet commented 2025-07-02 23:36:10 +08:00 (Migrated from github.com)

Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front.

Setup instructions

This was the solution!!!!! THANK YOU!!!!

> Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front. > > [Setup instructions](https://github.com/bryangerlach/rdgen/blob/master/setup.md) This was the solution!!!!! THANK YOU!!!!
AllenMGu commented 2025-08-21 16:14:54 +08:00 (Migrated from github.com)

Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front.

Setup instructions

thank you for you solution

> Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front. > > [Setup instructions](https://github.com/bryangerlach/rdgen/blob/master/setup.md) thank you for you solution
AllenMGu commented 2025-08-21 18:13:33 +08:00 (Migrated from github.com)

Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front.

Setup instructions

Image The GENURL with the port number seems unable to be recognized. This mistake still troubles me.
> Do not set it in github as an Environment secret. In settings, under the Security section, select Secrets and variables, then select Actions. Then setup a New Repository Secret. Also, your GENURL should include either "http://" or "https://" in front. > > [Setup instructions](https://github.com/bryangerlach/rdgen/blob/master/setup.md) <img width="2028" height="801" alt="Image" src="https://github.com/user-attachments/assets/d66989b6-3e2d-4eac-80f3-9164b7923216" /> The GENURL with the port number seems unable to be recognized. This mistake still troubles me.
AllenMGu commented 2025-08-22 09:40:39 +08:00 (Migrated from github.com)

vim /opt/rdgen/rdgenerator/views.py

Search for the line "def update_github_run(request)" and replace it with the following code. The request was processed successfully.

def update_github_run(request):
    try:
        # 记录请求信息
        print(f"Received update_github_run request: {request.method}")
        print(f"Request body: {request.body}")
        
        # 解析 JSON 数据
        data = json.loads(request.body)
        myuuid = data.get('uuid')
        mystatus = data.get('status')
        
        # 记录接收到的数据
        print(f"UUID: {myuuid}, Status: {mystatus}")
        
        # 更新数据库记录
        result = GithubRun.objects.filter(Q(uuid=myuuid)).update(status=mystatus)
        
        # 记录更新结果
        print(f"Database update result: {result} rows affected")
        
        # 返回成功的 JSON 响应
        return JsonResponse({"status": "success", "message": "Update received"})
        
    except json.JSONDecodeError as e:
        # 记录 JSON 解析错误
        print(f"JSON decode error: {str(e)}")
        return JsonResponse({"status": "error", "message": "Invalid JSON data"}, status=400)
        
    except Exception as e:
        # 记录其他错误
        print(f"Error in update_github_run: {str(e)}")
        return JsonResponse({"status": "error", "message": f"Internal server error: {str(e)}"}, status=500)

I'm still closer. I hope it can function properly.

vim /opt/rdgen/rdgenerator/views.py Search for the line "def update_github_run(request)" and replace it with the following code. The request was processed successfully. ``` def update_github_run(request): try: # 记录请求信息 print(f"Received update_github_run request: {request.method}") print(f"Request body: {request.body}") # 解析 JSON 数据 data = json.loads(request.body) myuuid = data.get('uuid') mystatus = data.get('status') # 记录接收到的数据 print(f"UUID: {myuuid}, Status: {mystatus}") # 更新数据库记录 result = GithubRun.objects.filter(Q(uuid=myuuid)).update(status=mystatus) # 记录更新结果 print(f"Database update result: {result} rows affected") # 返回成功的 JSON 响应 return JsonResponse({"status": "success", "message": "Update received"}) except json.JSONDecodeError as e: # 记录 JSON 解析错误 print(f"JSON decode error: {str(e)}") return JsonResponse({"status": "error", "message": "Invalid JSON data"}, status=400) except Exception as e: # 记录其他错误 print(f"Error in update_github_run: {str(e)}") return JsonResponse({"status": "error", "message": f"Internal server error: {str(e)}"}, status=500) ``` I'm still closer. I hope it can function properly.
AllenMGu commented 2025-08-22 11:03:11 +08:00 (Migrated from github.com)

When the servers in China are accessed via HTTP using the URL HTTP://0.0.0.0:8000, your port will be disabled by the network provider at that moment. Well, the problem has finally been identified. Please use HTTPS or an overseas server instead.

When the servers in China are accessed via HTTP using the URL HTTP://0.0.0.0:8000, your port will be disabled by the network provider at that moment. Well, the problem has finally been identified. Please use HTTPS or an overseas server instead.
Gerfy1 commented 2025-10-21 19:20:11 +08:00 (Migrated from github.com)

For those who don't have a domain and just want to host it locally to generate the client, how can the GENURL be defined?

For those who don't have a domain and just want to host it locally to generate the client, how can the GENURL be defined?
857074609 commented 2025-11-27 18:43:27 +08:00 (Migrated from github.com)

Rustdesk Client Generator
The Rustdesk Client Generator is currently under construction, please come back at a later time.

Rustdesk Client Generator The Rustdesk Client Generator is currently under construction, please come back at a later time.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#99