Posted: May 13, 2021 at 9:49 am
|
Hi,
But when I login from android app it works, can show my detail events I thought it was a bug in that version and fix in the next release, but I got the same error |
Hi there, This isn’t a bug as We have some details on authentication through the REST API here: In Postman you can test this by first going to the Authorization tab for your request and select Basic Auth. Add your login details for the site to the fields and then send the request. Examples, no Auth: https://monosnap.com/file/ZDDRlJBCrkpuahIdgE8NYUInI0jkTH With Basic Auth: https://monosnap.com/file/P2xvQXGGZU9J4QAAkviBa1HadwYLk3 |
|
|
I’m already did put the authentication I’m using network site, using AWS EC2, already disabled iThemes security plugin, but still same problem, only works if using android application but in postman failed |
So the above error normally means something is either stripping out the authorization header or blocking the request. Install the RESP API Log plugin: https://en-gb.wordpress.org/plugins/wp-rest-api-log/ Send the request to the site again using Postman, do you get a log entry? If so, open it up and check the |
|
|
here is my request header section
|
Yeah, so there’s no authorization header there. You should have something like this:
Within the Android app, are you just viewing the event details or are you viewing attendees? Event details are public details, they don’t require authentication to view them, for example: http:// Would show the event details for event ID 8 without any authentication needed at all, which means in the android app if are just loading the event details to check it works, you’re not comparing the same requests. On the app, click on the event, then click on ‘attendees’, does it list the attendees or show the same error as above? |
|
|
in my android app it shows the attendees or I missing something in postman? |
That link doesn’t work for me (shows an image from Windows XP) I can’t see issue with postman in the screenshot. What domain are you running this on? (You can mark your reply private so only EE staff can view it) |
|
|
This reply has been marked as private. |
|
sorry, i’m wrong copy paste the images, here is the correct one |
|
This reply has been marked as private. |
|
This reply has been marked as private. |
Ok, so yes, your server isn’t allowing for the Authorization header, it’s being stripped out before the request hits the site. The apps are passing that over as part of the query as a workaround for this but Postman doesn’t. If you add I’m not making any changes to your server/files, but I saw you had WP File Manager installed so had a look at your .htaccess file. It has this section commented out:
Is that change from a previous fix or did you try that and it didn’t work? |
|
|
yes, I’m comment out it, still the same result with or without |
|
what is string in the is it something like |
|
Hi Tony, Found the solution based on your comment since I’m using bitnami, then I search and found the solution here you can close this post. thanks |
Nice find and thanks for keeping us updated 🙂 |
|
The support post ‘Error missing permission in Postman but android app works’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.