Error: ERROR_RESOURCE_NOT_FOUND

59 views
Skip to first unread message

Dominik Hildebrandt

unread,
Nov 7, 2023, 8:54:52 AM11/7/23
to immobilienscout24-development
Hello,
I am having trouble to understand why suddenly my API wont work any longer. Up until 3 Months ago (apporx.) there was no issue. then it all stoped working and the Api throws back:
{"common.messages":[{"message":{"messageCode":"ERROR_RESOURCE_NOT_FOUND","message":"Resource [expose] with id [XXXXXXXXX] not found."}}]}

This is my Program structure:

$sImmobilienScout24Key    = $this->immo_key;
$sImmobilienScout24Secret = $this->immo_secret;
$oImmocaster              = Immocaster_Sdk::getInstance('is24',$sImmobilienScout24Key,$sImmobilienScout24Secret);
       
$oImmocaster->useHttps(true);
$oImmocaster->setRequestUrl('live');
$oImmocaster->setReadingType('curl');
$oImmocaster->setContentResultType('json');
       
$oImmocaster->authenticateWithoutDB(true);
       
$aParameter = array('exposeid'=>$expose_id);
$res        = $oImmocaster->getExpose($aParameter);

I am Posting the Debug Curl Call Params: [info] => Array ( [url] => https://rest.immobilienscout24.de/restapi/api/search/v1.0/expose/XXXXXXXXX?oauth_consumer_key=<myAPIKey>&oauth_nonce=<AToken>&oauth_signature=<MySignature>&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1699365082&oauth_version=1.0 [content_type] => application/json;charset=UTF-8 [http_code] => 404 [header_size] => 713 [request_size] => 625 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0,561947 [namelookup_time] => 0,060451 [connect_time] => 0,067808 [pretransfer_time] => 0,086487 [size_upload] => 0 [size_download] => 137 [speed_download] => 243 [speed_upload] => 0 [download_content_length] => 137 [upload_content_length] => -1 [starttransfer_time] => 0,561906 [redirect_time] => 0 [redirect_url] => [primary_ip] => <redacted> [certinfo] => Array ( ) [primary_port] => 443 [local_ip] => my.ip.address.fun [local_port] => myport )
Could someone tell me if i am doing something wron? I am using: Immocaster PHP SDK v1.1.83
Thanks!

Olaf Lindenau

unread,
Nov 7, 2023, 9:47:18 AM11/7/23
to immobilienscout24-development
Hi,

Please get in touch with schnitt...@immobilienscout24.de and send your api key for checking if the key has all necessary permissions.

Best
Olaf

Dominik Hildebrandt

unread,
Nov 8, 2023, 4:09:01 PM11/8/23
to immobilienscout24-development
Hello,

I got Feedback and the api key has all necessary permissions. However, i think my application is not yet registered? 

I noticed, that i used the Function "private function _getExpose($aArgs)" which does not send a username with it. So my guess is, that my initially used Account was reduced in its capacity to request all Exposes. Instead i created an API-Key especially for my client.
 So i guess i have to switch over to the Function  "private function _getUserExpose($aArgs)" which needs a username.

Could someone help me to confirm this and tell me, what the nexts steps are, that i have to do in order to properly register my application?

My Error Message now reads: "Die Applikation muss vor der Nutzung dieser Funktion zertifiziert werden, da für diesen Nutzer noch kein Token zertifizert wurde."

I am using $oImmocaster->authenticateWithoutDB(true); - is that no longer possible?

Сергей Степанов

unread,
Nov 20, 2023, 1:35:53 PM11/20/23
to immobilienscout24-development
Hi Dominik! 
I've been testing API at sandbox server and got the same issue! 
The expose is visible at website, e.g https://www.sandbox-immobilienscout24.de/expose/62266124 
But when I request it from API  https://rest.{{is24.domain}}/restapi/api/search/v1.0/expose/62266124 it gives me

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <message>
        <messageCode>ERROR_RESOURCE_NOT_FOUND</messageCode>
        <message>Resource [expose] with id [62266124] not found.</message>
    </message>
</common:messages>



четверг, 9 ноября 2023 г. в 00:09:01 UTC+3, Dominik Hildebrandt:

Olaf Lindenau

unread,
Nov 21, 2023, 3:18:59 AM11/21/23
to immobilienscout24-development
Hi,

please keep in mind that is it only possible to get your own objects that are in your own account. It is not possible to get objects which do not belong to your account.

Best
Olaf

Reply all
Reply to author
Forward
0 new messages