database_api.cpp:229 get_objects getObjects without subscribe callback??

Started by monsterer, December 12, 2015, 05:59:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bytemaster

Quote from: xeroc on December 15, 2015, 12:15:22 PM
The reason for this warning is that the witness node expects users to first "register" with the database api before they query for database stuff ..
In this case you asked something from the database and haven't requested access to the database yet
http://docs.bitshares.eu/api/websocket.html#requesting-api-access

Not quite.  The reason for this is an assumption that the GUI wants push notifications of changes to any object it has queried. This message was put there to detect instances where the GUI was misusing the API.  However, it can safely be ignored if you don't care about getting updates.  We can probably delete the warning all together.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

xeroc

The reason for this warning is that the witness node expects users to first "register" with the database api before they query for database stuff ..
In this case you asked something from the database and haven't requested access to the database yet
http://docs.bitshares.eu/api/websocket.html#requesting-api-access

hybridd

Quote from: roadscape on December 13, 2015, 12:18:08 AM
I've been receiving this message intermittently for weeks, I think it might be triggered by RPC calls. Not sure what it means, I assumed it was just an innocuous debug message


   if( _subscribe_callback )  {
      for( auto id : ids )
      {
         if( id.type() == operation_history_object_type && id.space() == protocol_ids ) continue;
         if( id.type() == impl_account_transaction_history_object_type && id.space() == implementation_ids ) continue;

         this->subscribe_to_item( id );
      }
   }
   else
   {
      elog( "getObjects without subscribe callback??" );
   }


Would seem so.
[url="http://sharebits.io"]http://sharebits.io[/url] - #sharebits "person" amount asset - Start tipping on bitsharestalk today!
Developer @ Freebie

roadscape

I've been receiving this message intermittently for weeks, I think it might be triggered by RPC calls. Not sure what it means, I assumed it was just an innocuous debug message
http://cryptofresh.com  |  witness: roadscape

monsterer

I've suddenly started getting this message - I have upgraded to the latest bitshares hardforking release. I've not seen this error in the previous version, any idea what it means?
My opinions do not represent those of metaexchange unless explicitly stated.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads