dify icon indicating copy to clipboard operation
dify copied to clipboard

Web Application cannot open, and popup message is "Missing required parameter in the query string".

Open tomy-kyu opened this issue 8 months ago • 1 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.4.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

We have confirmed that a problem has occurred and would like to share this information with you.

After merging the latest commit (latest is ‘fix: clean up two unreachable code (#20773)’) to the most recent state, when I tried to launch the Dify application in a browser, the following message appeared, and I have been unable to open the web application screen since then.

Missing required parameter in the query string

I collected the debug log, and the output was as follows. The following is the log when using Firefox, but the same log occurred in Microsoft Edge and Google Chrome.

2025-06-08 01:32:34.643 INFO [Thread-177 (process_request_thread)] [_internal.py:97] - 172.29.0.12 - - [08/Jun/2025 01:32:34] "#033[31m#033[1mGET /api/webapp/access-mode?appCode=gZLEjyiSDPFavGFw HTTP/1.1#033[0m" 400 -

[08/Jun/2025:01:32:34 +0000] “GET /api/webapp/access-mode?appCode=gZLEjyiSDPFavGFw HTTP/1.1” 400 120 "https://***.***.***.***/chat/gZLEjyiSDPFavGFw“ ”Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0“ ”***.***.***.***"

Please note that this issue occurred in all web applications, regardless of whether they were new or existing.

The last time fetch and merge were performed was Fri Jun 6 13:26:04, so I reverted to that point and the issue was resolved. I think the latest Commit is probably “feat: add browser list (#20717)”.

We hope this information is helpful.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

tomy-kyu avatar Jun 08 '25 02:06 tomy-kyu

The error is happening because the /api/webapp/access-mode endpoint now requires an appId parameter in the query string, but your request is sending appCode instead. The backend expects appId as a required parameter—if it's missing, you'll get a 400 error with the "Missing required parameter in the query string" message. You can see this enforced in the code for that endpoint here.

Check your frontend or wherever the request is generated to make sure it's sending appId (not appCode) in the query string. Also, review any recent changes that might have affected how these parameters are set. If you recently updated or merged code, it's possible something changed the expected parameter name or how it's passed to the backend.

If you fix the query string to include appId, the error should go away.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

dosubot[bot] avatar Jun 08 '25 02:06 dosubot[bot]

@dosu

metttttt avatar Jun 11 '25 07:06 metttttt

Thank you very much for your response. We manually applied the code to the relevant Pull Request and confirmed that it displays correctly. When updating the container image, we accidentally incorporated other merged code, which made it difficult to determine whether the issue had been resolved. We apologize for the delay in adding this information for your reference.

tomy-kyu avatar Jun 11 '25 07:06 tomy-kyu