ERR_HTTP2_PROTOCOL_ERROR

maxi117
HOBBY

9 months ago

I am using Django, and a module called import_export, to import data from an excel file from Django's admin.py with approximately 50,000 records. The problem is that the data loading time is approximately 20 minutes, which is why the front-end of the website crashes and gives me the following message:

Oops... this page cannot be accessed

It appears that the web page at https://serviuapp.up.railway.app/admin/serviuapp/beneficiarios/import/ is having problems, or may have been permanently moved to a new web address.

ERR_HTTP2_PROTOCOL_ERROR but data loading is still active according to the server logs.

It should be noted that in the deploy logs tab the data continues to be loaded into the database, but as I said at the beginning the front-end crashes.

1 Replies

9 months ago

Hello,

We only allow you to keep an HTTPS request open for a maximum of 5 minutes, this is not something that is configurable.

Instead, you should follow better practices and implement a worker based approach, where you make a single request to the backend, it responds instantly saying its started the job, then your frontend can check periodically for the state of the job.

I'm not a python developer but I think Django makes this very easy to implement with celery, I'm sure there are thousands of YouTube videos that would cover this topic that you could watch.