Deloyment error on AiMe: https://ai-me.replit.app

last deployed version that now actively hosted on https://ai-me.replit.app

context: we act in bridgio acceleration program and we do cusdev and with my friend full stack Daniel: and deside to create AiMe API and i have new code for api for Daniel Frontender; so and actual api-code for frontend here but we see next error

**Question:

2024-03-26T20:42:08Z info: Deployment: 90361ef7-1636-4693-b9a5-3b38a8fe771e

2024-03-26T20:42:08Z info: Build: df24448c-4219-47e0-9e04-b4141bffe713

2024-03-26T20:42:08Z info: Connecting to builder

2024-03-26T20:42:10Z info: Builder connected

2024-03-26T20:42:11Z info: Installing packages

2024-03-26T20:42:11Z info: Skipping Build as no Build command set

2024-03-26T20:42:11Z info: Pushing pid1 binary layer...

2024-03-26T20:42:13Z info: Created pid1 binary layer

2024-03-26T20:42:16Z info: Skipping Python layer creation

2024-03-26T20:42:16Z info: Skipping Node layer creation

2024-03-26T20:42:16Z info: Pushing Repl layer...

2024-03-26T20:42:16Z info: Pushing hosting layer...

2024-03-26T20:42:16Z info: Retrieved cached nix layer

2024-03-26T20:42:16Z info: Created hosting layer

2024-03-26T20:44:06Z info: Created Repl layer

2024-03-26T20:44:06Z info: Pushing Repl (cache) layer...

2024-03-26T20:44:08Z info: Created Repl (cache) layer

2024-03-26T20:44:08Z info: Pushed image manifest

2024-03-26T20:44:09Z info: Pushed soci index manifest

2024-03-26T20:44:16Z info: Creating Autoscale service

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
starting up user application
           ^^^^^^^^^^^^^^^^^^^
    from flask import Flask, request, render_template, jsonify, redirect, url_for
Traceback (most recent call last):
    from flask import Flask, request, render_template, jsonify, redirect, url_for
    return _bootstrap._gcd_import(name[level:], package, level)
                    ^^^^^^^^^^^
    self.load_wsgi()
           ^^^^^^^^^^^^^^^^^^^
2024-03-26T20:45:38Z error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on https://ask.replit.com/c/help/13

 and a staff member will take a look. https://github.com/indrad3v4/AiMe-API

  • from replit i cant nest in github from **

Repl link/Link to where the bug appears:https://replit.com/@indrad3v4/AiMe-AdAgency-greater-pre-flask

Screenshots, links, or other helpful context:

code snippet

That error might be caused by github authentication errors. Try signing back into github through replit.


Can’t help but notice that your repl spells out AIME (American Invitational Math Exam)

2 Likes

It seems you’ve got two different issues here.

For the first one, please give us more information such as the deployment settings.

The second one was reported in this topic:

Try disconnecting and reconnecting your GitHub account. If that doesn’t work, try what Firepup suggested in that topic.

“That error might be caused by github authentication errors. Try signing back into github through replit.” — yes, i think about it too but i do it and after doing it — still same thing not only in this one repl, i atry with code in another my repls too: https://replit.com/@indrad3v4

if back to AiMe code — now if i run code — in replit’s webview i see

AiMe: ai-app for brand-owners, and in this app we have computer vision (openai vision), nlp (spaCY), and neural network gpt-4-0125; you input in /process endpoint prompt and endpoint return branding strategies in choosen channels

If you have a repo called that and want to use it, click the code button on the repo and copy the remote url. Paste it into the git tab settings and it should connect it. Or am I misunderstanding?

it’ll be to easy, ofc i do not have this repo in my github

Then make one on GitHub and redo the steps

If you want to sync to a new GitHub repo, you could just manually do it from Shell and dodge the buggy git UI.

so, what i can do if in development enviroment — app runs
but when i try to deploy i see =

"2024-03-27T14:57:26Z info: Deployment: 90361ef7-1636-4693-b9a5-3b38a8fe771e
2024-03-27T14:57:26Z info: Connecting to builder
2024-03-27T14:57:28Z info: Builder connected
2024-03-27T14:57:29Z info: Installing packages
2024-03-27T14:57:29Z info: Skipping Build as no Build command set
2024-03-27T14:57:30Z info: Pushing pid1 binary layer...
2024-03-27T14:57:31Z info: Created pid1 binary layer
2024-03-27T14:57:34Z info: Skipping Python layer creation
2024-03-27T14:57:34Z info: Pushing hosting layer...
2024-03-27T14:57:34Z info: Retrieved cached nix layer
2024-03-27T14:57:34Z info: Created hosting layer
2024-03-27T14:59:47Z info: Created Repl layer
2024-03-27T14:59:47Z info: Pushing Repl (cache) layer...
2024-03-27T14:59:50Z info: Created Repl (cache) layer
2024-03-27T14:59:51Z info: Pushed image manifest
2024-03-27T14:59:51Z info: Pushed soci index manifest
2024-03-27T14:59:51Z info: Pushed referrer manifest
2024-03-27T14:59:59Z info: Creating Autoscale service
  File "/home/runner/90361ef7-1636-4693-b9a5-3b38a8fe771e/gunicorn.conf.py", line 1
    spec.loader.exec_module(mod)
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
                ^^^^^^^^
2024-03-27T15:01:19Z error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on https://ask.replit.com/c/help/13 and a staff member will take a look.
"

if what multiplayer here: https://replit.com/@indrad3v4/AiMe-AdAgency-greater-pre-flask?v=1