I can’t post the following in our discourse instance, would you help me why it could be?
More information: I tried as admin, or as basic user.
I’m trying to post to a sub category.
When I try to post without the code it works, then I can edit the post and add the code.
However if I try to post at once, it gives the error “Oops! This page doesn’t exist or is private”
Hello
when I use the OpenSearchAPI I get a response with multiple products.
The services section for a product looks like this:
Unfortunately, the URL doesn’t work. When trying to download a product I get a 301 HTTP (permanently moved) error. The response does not provide the URL of the new location.
To download the product, I now use the OData URL: https://download.dataspace.copernicus.eu/odata/v1/Products({ID})/$value
But actually, the provided URL should work, right?
We upgraded Discourse to the latest (3.4.6). For the first 3 tries the post still didn’t go through and didn’t state “Oops! This page doesn’t exist or is private”: it just seemed as a frozen post. After waiting for over 60 seconds I refreshed the page and then I saw the post back in draft.
On the 4th try the posting was successful within 2 seconds.
I proceeded with tests and now I’m having this “freezing” issue with another code block:
Test
# Import required packages
import openeo
from openeo.processes import process
# Connect to the back-end
connection = openeo.connect("https://openeo.dataspace.copernicus.eu")
# ToDo: Here you need to authenticate with authenticate_basic() or authenticate_oidc()
loadco1 = connection.load_collection(collection_id = "SENTINEL1_GRD", spatial_extent = {"east": -6.13279592954927, "north": 43.46046556339803, "south": 43.40424444976031, "west": -6.202756085062023}, temporal_extent = ["2023-09-01", "2023-09-13"])
savere1 = loadco1.save_result(format = "NETCDF")
# The process can be executed synchronously (see below), as batch job or as web service now
result = connection.execute(savere1)
Further information/tests I’ve done:
-I’m testing in the staging environment
-I tested with Firefox that has no plugins / extensions.
-I tested in /safe-mode, the issue persists.
-I tested by mentioning the language as ```python… the issue persists.
-cutting to the next line such as result = connection.execu
te(savere1)
the issue persists
-no error in Firefox’s console.
-I tried posting after turning off the preview, the issue persists
My settings:
Default code lang: python
Autohighlight all code: Unchecked
Highlighted languages: (empty)
Code formatting style: code-fences
The issue disappears if
1-I escape the () such as execute\(savere1\)
2-I delete .execute(savere1)
3-post the code partly, then edit and add the rest of the code
But I don’t wish to suggest users solutions as 1,2,3 as they are sub-optimal / I can’t predict for which keywords (e.g. .execute) it would brake etc.
Hello @klevent I moved your post to a new Support topic. Were you able to resolve your issue? It certainly looks like a weird one!
If the code block you were unable to post on your site can be posted here on meta, then likely your site has a component or plugin that is interfering. Can you try safe mode?