Laravel Unable to process this request via footrecrute.com at this time. HTTP ERROR 500 - laravel-8

Hi friends I deployed an app designed on laravel 8 on a cpanel hosting, but it shows me this error:
Unable to process this request via footrecrute.com at this time.
HTTP ERROR 500.
Someone help me to solve it?

If you have your app folder inside multiple folders, You could try this:
instead of having :
$app = require_once __DIR__.'/../public_html/folder1/folder2/bootstrap/app.php';
do
$app = require_once __DIR__.'/../folder1/folder2/bootstrap/app.php';

Related

V2ray api with python

I have a problem with v2ray config file and api request
I wand to send a request to x-ui that iinstalled on my vps to create a user and get data usege of users from another server
I found a python module on github but it rise a connectio error
https://github.com/V2ray-UMP/VUMP-gRPC-client
Can any body help me to how set this?
What is wrong in this config file?

Auth0 login locally

I have an application and an api, in terms of auth0, an static frontend and a expressjs backend, in production both are working. I setup Auth0 and users are able to login with Google accounts.
In production is working, but the problem I am facing is when I am working on my locally, when I run the application on my computer and I try to login I get the following error
Unhandled Runtime Error
Error: Request failed with status code 401
In the application setup I have
Allowed Callback URLs
https://www.myexample.com, http://localhost:3000, https://myexample.us.auth0.com/api/v2/
Allowed Logout URLs
https://www.myexample.com, http://localhost:3000
Allowed Web Origins
https://www.myexample.com, http://localhost:3000
and in the frontend
<Auth0Provider
domain="myexample.us.auth0.com"
clientId="XXXXXXXXXXX"
redirectUri={(process.browser) ? window && window.location.origin : 'http://localhost:3000'}
audience="https://myexample.us.auth0.com/api/v2/"
scope="read:current_user update:current_user_metadata"
>
If further information is needed, just let me know
I am not sure if I am missing some config or there is something I should change?

Mercure with symfony not working with vue

I got a problem with configure mercure under symfony with vue. I'm using mercure hub which is attached in symfony cli. in .env file I changed mercure urls to using http because it caused me error with certificate(which was included by symfony).
.env
MERCURE_URL=http://localhost:8000/.well-known/mercure
MERCURE_PUBLIC_URL=http://localhost:8000/.well-known/mercure
MERCURE_JWT_SECRET="!ChangeMe!"
When I test it by opening symfony app in example http://localhost:8000 and adding this script in console:
const eventSource = new EventSource('http://localhost:8000/.well-known/mercure?topic=' + encodeURIComponent('http://example.com/books/1'));
eventSource.onmessage = event => {
// Will be called every time an update is published by the server
console.log(JSON.parse(event.data));
}
It is working and I can publish some changes in other tab.
BUT when I do the same but in my vue app which is located on http://localhost:8080 address it shows me in console error:
Access to resource at 'http://localhost:8000/.well-known/mercure?topic=http://example.com/books/1' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Also I got 2 more questions:
Why when I paste jwt token in env I got 401 errors but with this one above not?
Why I cant use symfony serve with https? I got errors with "TransportException: fopen(): Unable to locate certificate CN"
It's because of CORS, because the domain where VueJS is running is different from the one where Mercure is installed.
I use Mercure with Docker compose, but if you start it from the CLI, try adding --cors-allowed-origins='http://localhost:8000 http://localhost:8080'
Other Question 1 : I think, you should use the same secret in .env, and in mercure config
in .env : MERCURE_JWT_SECRET="Secret123"
when you start mercure : --jwt-key='Secret123'

App-debug.html not working on eu1.rallydev.com

I'm currently developing a custom app that needs to be deployed on the eu1.rallydev.com server.
During the development I would like to use the App-debug.html to quickly see code changes without having to build and paste new html code, but this doesn't work.
I've changed the "server" in config.json, but keeps getting an error in console
Failed to load resource: the server responded with a status of 403 ()
Does anyone know what else I should do?
Try checking if the sysadmin has blocked the Custom HTML app in the subscription settings:
Allow Custom HTML app: true
Enable Cross-Origin Resource Sharing: true

Chive and Laravel Routing

i tried to extract chive in the public folder of laravel. now i get this error
Ajax request failed after i login to chive.
{"error":{"type":"Symfony\\Component\\HttpKernel\\Exception \\NotFoundHttpException","message":"","file":"\/var\/www\/archiver\/vendor\/laravel\/framework\/src\/Illuminate\/Routing\/RouteCollection.php","line":148}}
please help me to properly install chive.