Incomplete response received from application in cpanel django application - django

I am trying to host a django website on the cpanel . I used to get the page response from the server but now I am getting this "Incomplete response received from application" . I cant even figure out how to know whats the error or what steps to follow to get the error so that I can solve it .
I tried other methods like checking urls.py files but not able to figure out what is the error .
If you want any specific part of code , I would be happy to post it here to solve the problem .

Related

Django Application CPanel Internal Server Error 500

I am getting a Internal Server Error in my Django Application hosted in Cpanel . I have tables with Links and sublinks associated with those links .
so the url is like https://[domain]/links/ and https://[domain]/links// . Everything works fine on local host but whenever i go to the Sublink in the live website I get 500 Error.
I am really lost as I dont know how to debug this . I dont know how to start to look at the error . I looked at the log file and this is the ouput .
Can anyone tell me how to start debug this error since its running properly on the localhost so I cant find anything .

"Connection Error" When Adding A Product Through Admin Panel

ISSUE: I ran my project and tried adding a product through Django's Jet Dashboard, but it's giving me errors.
Project Repository: https://github.com/Bilal815/ecommerce_storee
ecommerce_storee/products/models.py/
https://github.com/Bilal815/ecommerce_storee/blob/master/products/models.py
ecommerce_storee/products/documents.py/
ecommerce_storee/products/urls.py/
ecommerce_storee/products/views.py/
ecommerce_storee/products/viewsets.py/
My Redis giving warning:
Redis Warning
My Logging Messages:
Log Messages
POST request's response:
POST request's response
Question: What do I do here? Is it an SSL issue or an elasticsearch issue?
I've tried disabling elasticsearch but to no avail and also tried adding product via MySQL and it worked!
P.S. StackOverflow would not allow me to paste the images but is itself making links out of them.
Thank you for any help!

django-rest-framework-social-oauth2: error 400 - redirect_uri_mismatch

I've been trying to add google login to my django app following this tutorial:
https://github.com/RealmTeam/django-rest-framework-social-oauth2
By following exactly the instructions, everything works fine in local.
However, when I try to replicate the same on the server, I get the following error on the redirect page of the login:
Error 400: redirect_uri_mismatch
redirect_uri: http://localhost:8000/auth/complete/google-oauth2/
What is strange to me is, in my google developer console, I have set up the correct redirect url in my app, as follows:
https://mydjangoapp.com/auth/complete/google-oauth2/
And I have also put 'mydjangoapp.com' under 'Authorised JavaScript origins'.
So my question is, why google keeps telling me that the redirect url is
http://localhost:8000/auth/complete/google-oauth2/
which is not the one I have set up in the console? Perhaps there is something obvious that I'm missing here. Thank you!
Why google keeps telling me that the redirect url is
Because your application is sending its in your code the app is running on http://localhost:8000 and if you are using a client library its probably adding the rest automatically.
http://localhost:8000/auth/complete/google-oauth2/
The redirect uri must exactly match what you are sending from your application.
You need to add
http://localhost:8000/auth/complete/google-oauth2/
Javascript origin is only needed if your code is using javascript.
This video will show you how to fix the error. Google OAuth2: How the fix redirect_uri_mismatch error. Part 2 server sided web applications.
If you want your code to send https://mydjangoapp.com then your going to have to be running it from https://mydjangoapp.com probably and you may need to figure out how to configure it so that it is running from the correct host.

GAE Error | Server Encountered an Error and couldn't complete your request. Please try again after 30 seconds

We have an app running on Google App Engine with Python 2.7 runtime which can be assessed using Google Login, implemented using users API endpoint.
We are getting an error "Server Encountered an Error and couldn't complete your request. Please try again after 30 seconds" whenever user tries to open the web app.. The error is thworn on App Engine side, since the 500 error happens on that line where this call is made 'GET https://appengine.google.com/_ah/conflogin'.
This happens for both mobile(majorly) and web. It shows the same error when we try after the specified time.
However when we clear the browser cookies, cache, history etc etc it starts working. Not sure why. But we cannot users to clear all such stuffs all time as they might loose the information that they browsed.
We tried various cases for login(multiple login, single login, incognito mode) but couldn't figure the root cause of the problem.
Have anyone faced such issues before? If yes please share how you solved it.

500 internal server error in back end - Joomla 2.5

I have installed new site in Joomla 2.5 and it was working fine at first,(front end and back end),
but today when I wanted to do some changes in the back end, after I log in to the site, It shows this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
I read some questions that were like my problem,
I made some changes in configuration.php file as below:
$log_path='./logs';
$tmp_path = './tmp';
but it did not work.
Please help me:)