Cannot publish - Error message is: Exiting because of an error: request returned 403

Which tool versions are you using?

SDK: v13.8.0
Platform: v23.03.6
Python: v3.10
Isolation mode: venv

Current Behavior

Exiting because of an error: request returned 403

Expected Behavior

app gets published correctly.

Context (optional, but preferred)

I have created an app and it works perfectly under the development environment. I also somehow managed to publish it once, but the process cannot be repeated. Now, whenever I try to publish it or another app using:

viktor-cli publish --registered-name topologicpy102 --tag v0.2.0

I get

Exiting because of an error: request returned 403

Hi Topologic,

Are you able to list your apps through the cli?

viktor-cli apps

A ‘403’ error usually means that you do not have the right permissions (anymore). This usually means that you no longer have ‘Maintainer’ rights to an App. Were there any changes to permissions recently? This can be changed in the Apps page in the Platform.

Kind regards,

Yes.

I checked the Maintainers and I am listed there correctly.

Here is also the system check output:
PS D:\viktor\topologicpy103> viktor-cli check-system --verbose
Starting VIKTOR system check…

Executing curl -v -I --fail http://neverssl.com --max-time 5:

  • Trying 34.223.124.45:80…
  • Connected to neverssl.com (34.223.124.45) port 80 (#0)

HEAD / HTTP/1.1
Host: neverssl.com
User-Agent: curl/7.83.1
Accept: /

HTTP/1.1 200 OK
Date: Wed, 05 Apr 2023 07:00:13 GMT
*Server: Apache/2.4.55 ()
Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Wed, 05 Apr 2023 07:00:13 GMT
< Server: Apache/2.4.55 ()
Upgrade: h2,h2c
< Upgrade: h2,h2c
Connection: Upgrade
< Connection: Upgrade
Last-Modified: Wed, 29 Jun 2022 00:23:33 GMT
< Last-Modified: Wed, 29 Jun 2022 00:23:33 GMT
ETag: “f79-5e28b29d38e93”
< ETag: “f79-5e28b29d38e93”
Accept-Ranges: bytes
< Accept-Ranges: bytes
Content-Length: 3961
< Content-Length: 3961
Vary: Accept-Encoding
< Vary: Accept-Encoding
Content-Type:< Content-Type: text/html; charset=UTF-8
text/html; charset=UTF-8

<

V Operating system internet access

Executing curl -v -I --fail https://files.pythonhosted.org --max-time 5:

  • Trying 199.232.57.63:443…
  • Connected to files.pythonhosted.org (199.232.57.63) port 443 (#0)
  • schannel: disabled automatic use of client certificate
  • ALPN: offers http/1.1
  • ALPN: server accepted http/1.1

HEAD / HTTP/1.1
Host: files.pythonhosted.org
User-Agent: curl/7.83.1
Accept: /

HTTP/1.1 200 OK
Connection: keep-alive
*Content-Length: 1853
Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Connection: keep-alive
< Content-Length: 1853
Co< Content-Type: text/html
ntent-Type: text/html
Server: nginx/1.13.9
<Accept-Ranges: bytes
Server: nginx/1.13.9
< Accept-Ranges: bytes
Date: Wed, 05 Apr 2023 07:00:13 GMT
< Date: Wed, 05 Apr 2023 07:00:13 GMT
Age: 0
< Age: 0
X-Serv< X-Served-By: cache-iad-kiad7000029-IAD, cache-lon420095-LON
ed-By: cache-iad-kiad7000029-IAD, cache-lon420095-LON
X-Cache: HIT, MISS
<X-Cache-Hits: 31, 0
X-Cache: HIT, MISS
< X-Cache-Hits: 31, 0
X-Timer: S1680678014.745220,VS0,VE77
< X-Timer: S1680678014.745220,VS0,VE77
Vary: Accept-Encoding
< Vary: Accept-Encoding
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
X-Frame-O<pti X-Frame-Options: deny
ons: deny
X-XSS-Protection: 1; mode=block
<X-Content-Type-Options: X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
nosniff
X-Permitted-Cross-Domain-Policies: none
<X X-Permitted-Cross-Domain-Policies: none
< X-Robots-Header: noindex
-Robots-Header: noindex

<

V Operating system access to PyPi

Executing curl -v -I https://sys.viktor.ai --max-time 5:

  • Trying 52.57.54.157:443…
  • Connected to sys.viktor.ai (52.57.54.157) port 443 (#0)
  • schannel: disabled automatic use of client certificate
  • ALPN: offers http/1.1
  • ALPN: server did not agree on a protocol. Uses default.

HEAD / HTTP/1.1
Host: sys.viktor.ai
User-Agent: curl/7.83.1
Accept: /

HTTP/1.1 404 Not Found
Content-Length:* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Length: 179
179
Content-Type: text/html
Date: Wed, 05 Apr 2023 07:00:14 GMT
<Referrer-Policy: strict-origin
Strict-Transport-Security: max-age=600; includeSubDomains
Content-Type: text/html
< Date: Wed, 05 Apr 2023 07:00:14 GMT
< Referrer-Policy: strict-origin
X-Content-Type-Options: nosniff
< Strict-Transport-Security: max-age=600; includeSubDomains
< X-Content-Type-Options: nosniff
X-Frame-Opt< X-Frame-Options: SAMEORIGIN
ions: SAMEORIGIN
X-XSS-Protection: 0
<Connection: keep-alive
X-XSS-Protection: 0
< Connection: keep-alive

<

  • Connection #0 to host sys.viktor.ai left intact

V Operating system access to VIKTOR system

Executing curl -v -I https://cloud.viktor.ai/ --max-time 5:

  • Trying 52.57.54.157:443…
  • Connected to cloud.viktor.ai (52.57.54.157) port 443 (#0)
  • schannel: disabled automatic use of client certificate
  • ALPN: offers http/1.1
  • ALPN: server did not agree on a protocol. Uses default.

HEAD / HTTP/1.1
Host: cloud.viktor.ai
User-Agent: curl/7.83.1
Accept: /

HTTP/1.1 200 OK

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Accept-Ranges: bytes
    Accept-Ranges: bytes
    Cache-Control: no-cache
    <Content-Length: 1276
    Cache-Control: no-cache
    < Content-Length: 1276
    Content-Type: text/html
    < Content-Type: text/html
    Date< Date: Wed, 05 Apr 2023 07:00:14 GMT
    : Wed, 05 Apr 2023 07:00:14 GMT
    ETag: “64142c32-4fc”
    <Last-Modified: Fri, 17 Mar 2023 09:00:34 GMT
    ETag: “64142c32-4fc”
    < Last-Modified: Fri, 17 Mar 2023 09:00:34 GMT
    < Referrer-Policy: strict-origin
    Referrer-Policy: strict-origin
    Strict-T<ransport-Security: max-age=600; includeSubDomains
    Strict-Transport-Security: max-age=600; includeSubDomains
    X-Content-Type-Options: nosniff
    < X-Content-Type-Options: nosniff
    X< X-Frame-Options: SAMEORIGIN
    -Frame-Options: SAMEORIGIN
    X<-XS X-XSS-Protection: 0
    S-Protection: 0
    Connection: keep-alive
    <
    Connection: keep-alive
    <
  • Connection #0 to host cloud.viktor.ai left intact

V Operating system access to VIKTOR environment
V Python is installed correctly

The system check has been completed with the following conclusion:

V Your system is ready to use VIKTOR with isolation mode ‘venv’
PS D:\viktor\topologicpy103>

Thanks for the screenshot of the maintainers, this setting seems to be correct.

Could you please try to redact your Personal Identifiable Information (email) from the image?

Your system seems to be set up correctly. I’ll need to discuss this internally, to see if there might be a different cause for this problem. I will try to get back to you as soon as possible.

ok thanks. It seems I was able to publish 1 app (which had bugs so it doesn’t run) but then I couldn’t update it or publish more apps. I don’t know what I did to make it stop working. I seem to remember generating a new token. Perhaps that has something to do with it. So I went ahead now and generated a new token but it didn’t help. (redacted here)

Hi Topologic,

Nice that you tried this as well, it helps to check off all possible causes.

I noticed in one of your previous screenshots that you are still able to start an app and establish a connection with cloud.viktor.ai, this means that your token is valid. So unfortunately is must be something else that is misconfigured. I’ll need to dig a little deeper.

1 Like

Hi Topologic,

I think that we have managed to fix the problem. It was a limit misconfiguration on our side. We have released a new patched version (v23.03.8) to the Platform that should fix the limit.

Could you check if you can publish your app again?

Kind regards,

The app works perfectly in the development environment. I was able to publish it and create a workspace, but when I launch the workspace it gives “Error: Failed to load the editor”
The app is supposed to be at: VIKTOR

Sadly, I am again getting the same error and on the same app (the Shadow Calculator). The only difference is that I added two file upload buttons. Now it is reporting “Exiting because of an error: request returned 403.”

Hi Topologic,

You mentioned that you only added two file uploads. Could you elaborate what changes were brought to your project? E.g. did you add any new dependencies to your requirements.txt?