Unable to Add My Community Website to Discourse Hub – Seeking Help

Hello ,
I’m writing to seek assistance with an issue I’ve been struggling with for some time: my personal community website (starorigin.net) cannot be added to the Discourse Hub. After researching , I’ve noticed that several others have faced similar issues over the years, and unfortunately, some of these cases remain unresolved. I’m now in the same situation and would greatly appreciate any help or guidance.

Here’s a summary of my situation:

  1. Initial Success:

    • When I first set up my community website (starorigin.net) my site was successfully listed in the Discourse Hub. This allowed my friends to easily access the community through the Discourse mobile app.
  2. Current Issue:

    • After following the Cloudflare setup tutorial available in the Discourse community and migrating my server, my website no longer appears in the Discourse Hub. Despite numerous attempts to resolve the issue, I haven’t been able to restore the listing.
    • This has caused significant inconvenience, as my friends can no longer access the community conveniently through the mobile app.
  3. What I’ve Tried:

    • I’ve double-checked all Cloudflare settings to ensure they align with the recommended configurations.

    • I’ve searched the Discourse forum for similar issues and tried the suggested solutions, but none have worked so far.

    • If anyone has encountered and resolved a similar issue, I would be incredibly grateful for your advice ,Alternatively, Could the Discourse Hub team consider implementing a special function to allow community owners facing technical difficulties to manually add their sites to the Hub? This would be a huge help for those of us who are stuck and unable to resolve the issue through standard methods.

I’m truly passionate about my community and want to make it as accessible as possible for my friends and members. Thank you in advance for your time and support!

DiscourseHub makes a HEAD request to:

https://starorigin.net/user-api-key/new

And it receives a 400 error so it cannot continue adding the site. You need to modify your Cloudflare configuration to allow access to that endpoint.

  1. I Create a Page Rule for /user-api-key/new:
  • Log in to the Cloudflare dashboard.
  • Navigate to Rules > Page Rules.
  • Click Create Page Rule.
  • In the If the URL matches field, enter:

https://starorigin.net/user-api-key/new

  • Under Then the settings are, select:
    • Cache Level: Bypass
    • Security Level: Off
    • Save the rule and test it.

  • However, this does not seem to work. The output I am getting looks like this:

{"errors":["param is missing or the value is empty: nonce"]}

Sorry, I don’t know how the Cloudflare UI works. You might want to look into the Cloudflare forums.

Thank you for the suggestion. I tried disabling Cloudflare, but I still cannot access https://starorigin.net/user-api-key/new directly, and the 400 error persists. This makes me think the issue might be on my server side.

Could you please advise where I should check in my server configuration?
thanks!

Test this theory by temporarily disabling Cloudflare, waiting for the DNS TTL to expire, then trying to add it again to Discourse Hub.

1 Like
curl -v http://127.0.0.1:8080/user-api-key/new
*   Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
> GET /user-api-key/new HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.5.0
> Accept: */*
> 
< HTTP/1.1 400 Bad Request
< Server: nginx
< Date: Tue, 14 Jan 2025 22:15:08 GMT
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 0
< X-Content-Type-Options: nosniff
< X-Permitted-Cross-Domain-Policies: none
< Referrer-Policy: strict-origin-when-cross-origin
< X-Discourse-Route: user_api_keys/new
< Vary: Accept
< X-Request-Id: fe9303f5-ce51-4bd2-a73e-cda5a6d654e9
< X-Runtime: 0.004521
< 
* Connection #0 to host 127.0.0.1 left intact
{"errors":["param is missing or the value is empty: nonce"]}

This is the debugging result from my server. I think there might be some issues with my container, causing it to be inaccessible. What could be the reason for this, and how can I troubleshoot it? If you could provide any assistance, I would greatly appreciate it.

You tested something completely different that what I suggested, and only demonstrated that your server was functioning correctly.

The error you received was:

{"errors":["param is missing or the value is empty: nonce"]}

The server is correct. You called this API incorrectly, hence the error. You’ll get the same result against e.g. meta.discourse.org:

○ → curl https://meta.discourse.org/user-api-key/new
{"errors":["param is missing or the value is empty: nonce"]}

I have turned off Cloudflare to allow traffic to access my server directly. It has been three hours, but I still cannot find my website on Discourse Hub. I am now unsure where to look for the issue.

This statement is incorrect - a DNS lookup for starorigin.net against Cloudflare’s nameservers still returns their IPs:

○ → host starorigin.net colin.ns.cloudflare.com
Using domain server:
Name: colin.ns.cloudflare.com
Address: 162.159.44.75#53
Aliases: 

starorigin.net has address 172.64.80.1
starorigin.net has IPv6 address 2606:4700:130:436c:6f75:6466:6c61:7265
1 Like

I found that several other communities are experiencing a similar issue to mine. For example, baidu.do (https://baidu.do/user-api-key/new) is also inaccessible for me, but it can still be found on Discourse Hub. Why is this happening?

Even for the OpenAI community, this URL outputs the same content as my personal website, yet it is still searchable on Discourse Hub.

These are not “issues” this is correct behaviour.

/user-api-key/new needs additional parameters sent with it - calling it from curl really is a bad request.

You need to correctly turn off Cloudflare to identify the source of the problem.

1 Like