Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Houzi App issue #14

Closed
UTimung opened this issue Dec 10, 2022 · 22 comments
Closed

Houzi App issue #14

UTimung opened this issue Dec 10, 2022 · 22 comments

Comments

@UTimung
Copy link

UTimung commented Dec 10, 2022

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
Copy link
Collaborator

What is your website address.

@UTimung
Copy link
Author

UTimung commented Dec 10, 2022

https://renestedapp.com

@AdilSoomro
Copy link
Collaborator

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
Copy link
Author

UTimung commented Dec 10, 2022

Screenshot 2022-12-10 at 9 25 28 PM

@AdilSoomro
Copy link
Collaborator

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

@UTimung
Copy link
Author

UTimung commented Dec 10, 2022

i don't think so,
but i tried, same issue
Screenshot 2022-12-10 at 11 08 27 PM

@AdilSoomro
Copy link
Collaborator

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
Copy link
Author

UTimung commented Dec 10, 2022

same issue

Screenshot 2022-12-11 at 12 03 00 AM

@AdilSoomro
Copy link
Collaborator

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
Copy link
Author

UTimung commented Dec 10, 2022

i updated the plugin
but app same issue

@AdilSoomro
Copy link
Collaborator

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
Copy link
Author

UTimung commented Dec 10, 2022

check i added in .htaccess
Screenshot 2022-12-11 at 12 42 22 AM

@AdilSoomro
Copy link
Collaborator

I'm not so expert in htaccess modification. Can you refer here on JWT Auth plugin discussion about the same issue here: Tmeister/wp-api-jwt-auth#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
Copy link
Author

UTimung commented Dec 10, 2022

line 125 changed
Screenshot 2022-12-11 at 12 42 22 AM

@UTimung
Copy link
Author

UTimung commented Dec 10, 2022

line 125 changed

Screenshot 2022-12-11 at 1 45 24 AM

@UTimung
Copy link
Author

UTimung commented Dec 10, 2022

and i'm getting this in log

Screenshot 2022-12-11 at 1 45 01 AM

@AdilSoomro
Copy link
Collaborator

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
Copy link
Author

UTimung commented Dec 10, 2022

please check,, i will share wordpress access

@UTimung
Copy link
Author

UTimung commented Dec 11, 2022

please send your email
i will send wordpress access

@AdilSoomro
Copy link
Collaborator

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

@UTimung
Copy link
Author

UTimung commented Dec 11, 2022

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

what more?

@UTimung
Copy link
Author

UTimung commented Dec 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants