aleph-im / front-aleph-cloud-page

1 stars 0 forks source link

Aleph-VM does not support plain encoding for PROGRAM src #76

Closed BjrInt closed 9 months ago

BjrInt commented 9 months ago

Problem description

While Aleph-vm technically support plain encoding for program source, it does not seem to work as is.

Fix

As a temporary fix, send the program source as a zipped file

Ref

This fixes a regression that was potentially introduced in #56

hoh commented 9 months ago

The issue comes from the definition of the entrypoint in ASGI:

In this case, “main:app” was used, where “main” is supposed to refer to the Python module, for example “main.py”, and “app” to the variable that defines the application inside the module.

When uploading a file in the “plain” format, only “app” should be provided as entrypoint since there is no file to open.