• Resolved anjitaitsolutions

    (@anjitaitsolutions)


    We are getting the following error on the rest API call.

    While creating the API – we have used the administrators’ email id and given WRITE/READ access.

    the same method used for other apps works, but not in the case of unicommerce.

    they are getting this error,

    ———

    
    
    REQ
    
    [URL=https://website.com
    /wp-json/wc/v3/products?consumer_key=xxxxxxxx&consumer_secret=xxxxxx&per_page=1&page=1
    , METHOD=GET, HEADERS=null, PARAMS=null, PROXY-HOST=null, PROXY-PORT=null]
    
    RES
    
    [RESULT=
    	<meta charset="UTF-8">
    	<title>Your access to this site has been limited by the 
    site owner</title>
    	
    <div class="top-accent"></div>
    <div class="container">
    	<h1>Your access to this si
    te has been limited by the site owner</h1>
    	<p>Your access to this service has been limited. (HTTP response code 503)</p>
    	<p>If you think y
    ou have been blocked in error, contact the owner of this site for assistance.</p>
    	<hr>
    	<p class="medium">If you are a WordPress user with admini
    strative privileges on this site, please enter your email address in the box below and click "Send". You will then receive an email that helps you regain access.</p>
    ;
    	<form method="POST" id="unlock-form" action="#">
    		<input type="hidden" name="nonce" value="
    c522">
    		<input type="text" size="50" name="email" id="unlock-email" value="" maxlength="255" placeholder="[email protected]">  <input type="subm
    it" class="wf-btn wf-btn-default" id="unlock-submit" name="s" value="Send Unlock Email" disabled="">
    	</form>
    	<script type="application/javascript">
    
    		(function() {
    			var textfield = document.getElementById('unlock-email');
    			textfield.addEventListener('focus', function() {
    				document.getElementById('
    unlock-form').action = "https://thegoodskart.com/" + "?_wfsf=unlockEmail";
    				document.getElementById('unlock-submit').disabled = false;
    			});
    		})();
    	<
    /script>
    	<h2 class="h3">Block Technical Data</h2>
    	<table border="0" cellspacing="0" cellpadding="0" class="block-data">
    		<tbody><
    ;tr>
    			<th class="reason">Block Reason:</th>
    			<td class="reason">POST received with blank user-agent and referer</td>
    		</tr>
    
    		<tr>
    			<th class="time">Time:</th>
    			<td class="time">Mon, 14 Feb 2022 12:22:42 GMT</td>
    		</tr>
    	</tbody>&l
    t;/table>
    
    • This topic was modified 3 years, 1 month ago by Yui.
    • This topic was modified 3 years, 1 month ago by Yui. Reason: formatting

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @anjitaitsolutions,

    Looking at the error message, it seems like this is being rejected for this reason:

    
    POST received with blank user-agent and referer
    

    I also noticed this in the message, _wfsf=unlockEmail, which I believe may be coming from WordFense Security. You could try temporarily disabling that plugin and see if the request works. If it does, try modifying your request to meet their specifications or contact their support for further help.

    Let us know if you have any questions.

    Cheers!

    Hi @anjitaitsolutions

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Rest APIs – Your access to this service has been limited’ is closed to new replies.