P
Postiz4mo ago
Support

Login TypeError

@chribonn Just created a ticket
Question: I access postiz via localhost:5000. When I tried to register with Google nothing happens when I click. When I try to use the form below I get the error below Error: General error: TypeError: NetworkError when attempting to fetch resouces. Please check your browser console
Attempted: I restarted, tried to log in from another browser (Firefox and Chrome).
Working On: Ubuntu 24.04.1
Take it from here @Mod 🔥
26 Replies
Sanad
Sanad4mo ago
Can you check where the backend is running?
Oleksandr
Oleksandr4mo ago
GitHub
[AB-0002]: google auth configuration simplified by OleksandrKuchere...
What kind of change does this PR introduce? Google Auth and Google Youtube - are divided into two different environmental variables Why was this change needed? Login/SignIn/SignUp - should have ...
Oleksandr
Oleksandr4mo ago
for auth/login should be configured clientId/accessKey/etc for google. And the initial design of the system expects youtube/google - as one entity setup
chribonn
chribonn4mo ago
Both the front and backend are running on localhost. I buit the solution based upon the following script: https://docs.postiz.com/installation/docker-compose#example-docker-composeyml-file. I replaced all references to postiz.your-server.com woth localhost
Postiz Documentation
Docker Compose – Postiz Docs
Postiz - Open source social media scheduling tool
chribonn
chribonn4mo ago
Want to clarify that both the Google as well as direct subscription form fail. Attaching a gif of what I experience.
No description
Support
SupportOP4mo ago
@Mod 🔥 please help @chribonn
xcons
xcons4mo ago
Heya @chribonn , the most likely cause of this is probably the NEXT_PUBLIC_BACKEND_URL is not set, and it's undefined, causing the TypeError. Thanks for the video by the way, that really helps. Could you check your environment variables for the NEXT_PUBLIC_BACKEND_URL, and also check your web developer logs? Normally you press F12 to open the Web Developer console
chribonn
chribonn3mo ago
I confirm that NEXT_PUBLIC_BACKUP_URL does not exist
chribonn
chribonn3mo ago
No description
chribonn
chribonn3mo ago
Thanks Hija @xcons, you wouldn't happen to have an update. I am recording a tutorial on how to install Postiz and am blocked.
Thanks 📝
heps
heps3mo ago
Hello, probably i have the same issue.
Brotherperson
Brotherperson3mo ago
Sounds like what i had also
chribonn
chribonn3mo ago
I am writing a tutorial, I have the the entire process recorded and noted. If this is a blocking point than maybe I can take a break from this topic. I had in mind something along these lines: https://www.alanbonnici.com/2024/08/proxmox-nut-homelab-howto-step-0.html This is a multipart series comprising article and video on Proxmox.
Proxmox-NUT Homelab HOWTO : Step 0 : The Proxmox-NUT HomeLab HowTo:...
This blog is about security and computing related topics with occassional hobby activities thrown in.
chribonn
chribonn3mo ago
@heps @Brotherperson You wrote that you had it. How did you solve it?
Brotherperson
Brotherperson3mo ago
I did not. Someone tolled me is is because it gets directed to http not https
chribonn
chribonn3mo ago
Thanks, I was under the impression that localhost could be run at http. Can someone please explain whether this is correct? If not I have to go back and revisit the topic My reasoning was to keep the first version of the HowTo at a minimum, adding caddy at a later stage.
chribonn
chribonn3mo ago
That's what the docs say 🙂
No description
xcons
xcons3mo ago
hey all localhost can run as http, yep @chribonn , do you have "https" in your env URLS? I think so, change them to just "http" for localhost @chribonn ping?
chribonn
chribonn3mo ago
yes I do I'll try it out.
chribonn
chribonn3mo ago
Same error. I included what I observe and the Console output. Could the Cross Domain form be the issue? I am attaching the docker-compose.yml file in case you want to reproduce it. I used the example code at https://docs.postiz.com/installation/docker-compose#example-docker-composeyml-file and did the following: - replaced all https://postiz.your-server.com with http://localhost - populated the string JWT_SECRET
Nєυтяσи
Nєυтяσи3mo ago
As it says on the wiki, you have to use https to login You'll be not able to do it with http
xcons
xcons3mo ago
localhost is fine As the error message says, please open your browser console (F12 on most systems) That will tell you the "real" error message - Postiz doesn't have access to that
chribonn
chribonn3mo ago
I was asled to try http. My original report was when I was using https
chribonn
chribonn3mo ago
In the animated gif I did that reproduced below
No description
chribonn
chribonn3mo ago
I beleive I shared this information when I originally raised the issue 🤔
xcons
xcons2mo ago
@chribonn it's because you have two different URLs one with :5000 for the FRONTEND_URL and NEXT_PUBLIC_BACKEND_URL does not have :5000 in it

Did you find this page helpful?