I have a plugin that is calling “/real-queue/v1/status” every 15 seconds, as witnessed within the Network panel of console developer tools.
However, when viewing the REST API log it appears to be triggering the GET method basically every 108ms? This is crazy to see as the log has hundreds of these specific calls within 24 hours.
Could this specific GET call for “/real-queue/v1/status” be triggering per live tab as well? Not just the active one? Meaning, if the website is open on 5 tabs then it’s being triggered 5x as much?
]]>Is there any way to create a filter to create a log when request comes from a specific IP?
]]>Thanks for the most useful plugin!!!
How can I replay some (many) of the recorded API calls?
Best if possible to use calls recorded on one site (production) and replay them on another (development or staging)
]]>Currently the time is displayed formatted H:i how can it be changed to H:i:s ?
]]>Getting this msg. in Site Health.
When testing the REST API, an unexpected result was returned:
REST API Endpoint: https://mylawbooks.in/wp-json/wp/v2/types/post?context=edit
REST API Response: (403) Forbidden
even getting The loopback request returned an unexpected http status code, 403, it was not possible to determine if this will prevent features from working as expected error
]]>Hi.
This plugin displays two errors on backend:
Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /wp-includes/functions.php on line 7053
Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-includes/functions.php on line 2165
Do you know how to resolve this?
Regards.
]]>From Site Health Tools, I am getting the following:
“When testing the REST API, an unexpected result was returned:
REST API Endpoint: https://www.ism-houston.org/wp-json/wp/v2/types/post?context=edit
REST API Response: (403) Forbidden”
If I go to URL above I get this:
{"code":"rest_forbidden_context","message":"Sorry, you are not allowed to edit posts in this post type.","data":{"status":401}}
I am also getting loopback requests could not be completed.
I am also getting a similar issue from WP Super Cache. Support there responded with the following:
The loopback request issues in conjunction with the 403 errors most likely indicate that your webserver configuration prevents internal requests.
A misconfiguration of BasicAuth is one of the most common ones. I would recommend that you check that with your host.
I contacted the hose, Digital Space, listing the issues I am having and they just respond with the comment that all is well with my site and database. They don’t answer if their server configuration prevents internal requests.
Is there a way to conclusively show one way or the other if their servers are preventing any kind of internal requests? What log do I got to find this and how do I recognize this?
Thanks for the help.
]]>I have over 2 million entries in my log. I would like to purge them but the purge button times out due to server limitations on how long a request can run. I tried the CLI wp rest-api-log purge and the command is “killed” after a few short seconds. What other options do I have?
]]>Hi,
how can I filter only the API calls done by a defined user?
Thanks.Davide
]]>Greetings,
Getting this msg. in Site Health.
When testing the REST API, an unexpected result was returned:
REST API Endpoint: https://example.com/wp-json/
wp/v2/types/post?context=edit
REST API Response: (403) Forbidden
Access to anything in /wp-json/
I have restricted by IP addresses of only the server and website. The error is happening because some other IP address is trying to access and that IP address is a Nameserver Shared IP. As many sites use a Shared IP, I’m trying to find the Domain name associated with the IP.
What is confusing to me is the REST API Endpoint is using the correct Domain name but a different IP address – which is why it is blocked.
I was hoping this Plugin would help me to determine where or why, whatever file within WordPress; Core, Plugin or Theme, is making the call. Currently I am using Rest API Log v1.6.9 and see that it only shows Response Code 200 and not anything else, like a 403. Are there any plans in future plugin versions to include other Response Codes? Or, if you are able, is there another plugin you can recommend, that will help with this type problem?
Thanks
]]>I see a previous thread about exporting but it didn’t include the answer.
How can I export. If I user WP All Export which fields should I choose to get the export to have all the fields as per the frontend?
Hi,
I could see an issue with woo orders jumping in huge numbers recently in the website.
Like eg,orders #146631 and #147710.
When i have checked in the Wp_post table,i could see the logs are present in between these orders(with thousands of numbers!) .screenshot:https://prnt.sc/16oz9c4
Usually,we can see the posts,comments, are stored as wp_posts table,and serves as post.But it will be in less numbers.
Could you configure the plugin to create a seperate table for logs ,so that it will never leads to this kind of issues?
Thanks,Waiting for your reply
]]>Hello!
Thanks for this great plugin!
I’ve been using for a very long time!
I have a sugestion, it’s possible in next updates of this plugin avoid using the wp_posts for keep the log entries?
It will be better for the blog/website performance if those logs have their own table.
I run a big ecommerce with lots of products, pages and posts that is entirely controlled by the rest api. So there is a LOT of log entries that I have to keep.
Consider use a custom table for this plugin, please. ??
Thanks again for your work!
Have a nice week!
Hi
I use the plugin with the latest version of WordPress (5.5.3) to log API calls regarding WooCommerce.
I found that the plugin (i use it for approx. half a year now) makes the API very slow.
I.e. a GET call to /wc/v3/products/ takes 5 seconds to complete, whereas without the plugin, it takes 0,7s.
The question is, why is it slowing down the API and how can this be solved?
Best,
Thomas
Please rewrite to NOT use wp_posts as the log file.
It clogs up operations with THOUSANDS of posts, affecting DB performance, and for WooCommerce sites, moves the Order ID up by huge jumps, causing confusion.
]]>Hi
Have the plugin logging WooCommerce route /wc/v3/products but I have an integration to a third party service that uses the legacy API at route /wc-api/v3/products which is not being logged.
Any way I can get this logged?
Tx, Sven
]]>Hi There,
I read one of the previous posts here and read that this command:
wp rest-api-log purge
Should purge all of the entries I have stored, however when I run this I get this output:
Notice: Undefined index: SERVER_NAME in /var/www/dev/wp-content/plugins/wonderplugin-carousel/app/class-wonderplugin-carousel-update.php on line 17
Notice: Undefined index: test in /var/www/dev/wp-content/plugins/wp-zero-variations/modules/hooks.php on line 27
Success: 0 entries purged
Purging old REST API log entries...
I don’t believe that it is getting hung up on those two plugins but rather just not deleting the entries. I have about 150,000 entries to purge but it just doesn’t seem to be doing it.
If there is a SQL query, I certainly can run that. Or continue to troubleshoot let me know what I can do.
Thank you!! Wonderful plugin!
Derek
Can i add custom link to logging?
]]>Hi,
Great plugin, but have couple issues to report:
1. “Purge All XXX Entries Now” button (wp-admin/options-general.php?page=wp-rest-api-log-settings) should not attempt to remove all rest api log entries at once, but rather execute small ajax request that would fire another ajax request upon completion until all records are removed. This is needed to avoid php timeouts (e.g. try removing 10,000 log entries)
2. More serious issue is JSON storage as meta value. add_post_meta() will strip slashes and will corrupt JSON.
E.g:
original rest api request:
{
"some_key": "this is \"hello world\" message"
}
rest api request stored in meta by plugin:
{
"some_key": "this is "hello world" message"
}
Since quotes are no longer escaped, this corrupted JSON document can no longer be used to repeat JSON requests without manually reviewing the JSON document.
Here is the patch that should resolve the issue:
PATCH:
https://gist.github.com/mch0lic/a8d52865ff04af5bdfb879e1d560921f
I’m trying to filter by method but the filters are not working for me
]]>Firstly, thank you for an awesome and very useful plugin!It works flawlessly with V3 Rest API. I would,however, like to now if there is a simple way that I can extract the log data into Excel or CSV file.
]]>Thank you for such a nice plugin!
I suggest a feature to view json in pretty format.
Currently it looks like a one line string
{"cart":{"currency":"USD","items":[{"feedId":654264,
…. and so on
Pretty view
{
"cart": {
"currency": "USD",
"items": [
{
"feedId": 654264,
…. and so on
And even colorify it.
]]>Thank you for your plugin!
I would really like to make use of it in Woocommerce with the v3 Rest API. Is that possible?
Sincere thanks!
]]>I have taken over a site that has had this plugin running and logging for 3 years now, there are 375000 entries in the db more than doubling what it should be. I have set it to only retain the last 3 days but it isn’t working neither is wiping the entries with the button. Do you have an sql statement I could run that would clear all these entries from the db? It is a production site hosed and slowed to a crawl
Thanks
Hi,
I dont want to assign new postID for each log entry. Is it possible to store it in external database or maybe in same table, but not using the core ID for the post?
Hi Pete,
I found a security bug, but cannot find a private email for contacting you. Can you tell me one, or set up something with forward.cat or the like, so that I can report it?
David
]]>Thanks for this plugin!
If you do this:
1) Save settings
2) Click on a tab heading
Then you’ll get an error in response. You have to re-load the settings page from the ‘Settings menu to be able to navigate again.
]]>I have this plugin installed and enabled. There are two issues.
1) The message “REST API Log activated! Please visit the Settings page to customize the settings.” appears at the top of every page in the admin. I have gone to the settings page and saved my changes. But there appears to be no way to dismiss this message.
2) I have several REST API sessions to retrieve WooCommerce orders (using WC 3.0.5) but the REST API log is always empty. I have REST API Log enabled and with no filtering.
]]>