Author Topic: database_api.cpp:229 get_objects getObjects without subscribe callback??  (Read 1873 times)

0 Members and 1 Guest are viewing this topic.

Offline bytemaster

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: http://bytemaster.bitshares.org
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.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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

Offline hybridd

  • Full Member
  • ***
  • Posts: 164
    • View Profile
  • BitShares: hybr1d
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

Code: [Select]
   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.
http://sharebits.io - #sharebits "person" amount asset - Start tipping on bitsharestalk today!
Developer @ Freebie

Offline 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

Offline 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.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads