booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

Houzi App issue #14

Closed UTimung closed 1 year ago

UTimung commented 1 year ago

JWT plugin enabled JWT key added in wp-config

App not opening showing "Check your connection and try again"

If disable JWT plugin app loading contents but still showing "Check your connection and try again" WhatsApp Image 2022-12-10 at 6 40 49 PM WhatsApp Image 2022-12-10 at 6 40 49 PM(1)

AdilSoomro commented 1 year ago

What is your website address.

UTimung commented 1 year ago

https://renestedapp.com

AdilSoomro commented 1 year ago

Can you specifiy where did you add your secret key in wp-config file? Is it added to the file alongside other keys like the example below:

define( 'AUTH_KEY',            'y...' );
...
...
define( 'SECURE_AUTH_SALT',    'o.....' );
define( 'LOGGED_IN_SALT',      '[t....' );
define( 'NONCE_SALT',          'c....' );
define( 'WP_CACHE_KEY_SALT',   'S....' );
define( 'JWT_AUTH_SECRET_KEY', 'o....' );

meaning, is the secret key defined with all other keys?

UTimung commented 1 year ago
Screenshot 2022-12-10 at 9 25 28 PM
AdilSoomro commented 1 year ago

Can you move the key to the bottom of * Authentication Unique Keys and Salts. keys. It should be defined there.

UTimung commented 1 year ago

i don't think so, but i tried, same issue

Screenshot 2022-12-10 at 11 08 27 PM
AdilSoomro commented 1 year ago

What I suggested was, there're some keys below * Authentication Unique Keys and Salts. comments. Move your JWT key below all of those keys. See attached. Also make sure debug is off.

wp-config-sample
UTimung commented 1 year ago

same issue

Screenshot 2022-12-11 at 12 03 00 AM
AdilSoomro commented 1 year ago

Okay, it seems you've some warning turned on. I'm seeing few issues in postman while accessing web services on your server.

Also I've attached an updated plugin for Houzi Rest Api, please uninstall previous and then install this one on your website. houzi-rest-api-main.zip

UTimung commented 1 year ago

i updated the plugin but app same issue

AdilSoomro commented 1 year ago

I'm seeing some errors when I'm accessing following URL.

https://renestedapp.com/wp-json/wp/v2/properties

see attached screenshot. authorization_error

Is HTTP Authorization enabled on your server? The JWT Auth Plugin mention to enable authorization from htaccess. Can you verify your server settings?

UTimung commented 1 year ago

check i added in .htaccess

Screenshot 2022-12-11 at 12 42 22 AM
AdilSoomro commented 1 year ago

I'm not so expert in htaccess modification. Can you refer here on JWT Auth plugin discussion about the same issue here: https://github.com/Tmeister/wp-api-jwt-auth/issues/1

I'm not so much sure about this, but I would try modify the line number 125 as:

RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
UTimung commented 1 year ago

line 125 changed

Screenshot 2022-12-11 at 12 42 22 AM
UTimung commented 1 year ago

line 125 changed

Screenshot 2022-12-11 at 1 45 24 AM
UTimung commented 1 year ago

and i'm getting this in log

Screenshot 2022-12-11 at 1 45 01 AM
AdilSoomro commented 1 year ago

Yes, that's because server is sending un expected error. As I already shared the screenshot. It is showing warnings, before the actual data, that's why app cannot parse the unexpected characters.

UTimung commented 1 year ago

please check,, i will share wordpress access

UTimung commented 1 year ago

please send your email i will send wordpress access

AdilSoomro commented 1 year ago

Hello, the issue seems to be the configurations on your hosting. You should look into fixing this.

UTimung commented 1 year ago

what more to configure jwt also done htaccess also done plugin also done

what more?

UTimung commented 1 year ago

we using this hosting https://www.ionos.com/