voz

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by voz

  1. Hi, I use an evaluation API key for building an application around the sync API. Till few days ago everything worked well and I was able to call the APIs successfully.

    Now when I start the Sync on one of my machines with a config file (please see below), I can not open http://127.0.0.1:888, it just shows "Invalid request". I get the same response on all API calls on that machine. This behaviour is the same across browsers: Chrome/Safari/Firefox.

    Interestingly, on other development machines everything works well and the APIs work as expected. So the evaluation key seems to be valid (it should still be valid for another 3 month). 

    We run:

    • Mac OS 10.11.3
    • Sync 2.3.1 (259)

     

    Any idea what could be the reason? Could it be related to the fact that I am using an evaluation key or it is something else?

    My config file as it is:
     

    {
        "agree_to_EULA": "yes",
        "device_name": "xyz-server",
        // path to folder where Sync will store its internal data,
        // folder must exist on disk
        "storage_path" : "/xyz/system/btsync/metadata",
        // run Sync in GUI mode
        "use_gui" : true,
    
        "webui" : {
            // IP address and port to access HTTP API
            "listen" : "127.0.0.1:8888",
            // login and password for HTTP basic authentication
            // authentication is optional, but it's recommended to use some
            // secret values unique for each Sync installation
            "login" : "abc",
            "password" : "def",
            // replace xxx with API key received from BitTorrent
            "api_key" : "MY-API-KEY"
        }
    }

     

  2. Hi, I'm trying the api and everything works well till now. I'm handling the file-related events (EVENT_REMOTE_FILE_ADDED, EVENT_REMOTE_FILE_REMOVED) so my app knows when files are created or removed by other peers.

    Now I want to do the same for subfolders, even when they are empty. I see that empty subfolders are synced but no event is fired. I would expect to have the same EVENT_REMOTE_FOLDER_ADDED and EVENT_REMOTE_FOLDER_REMOVED as I have for files.

     

    Am I doing something wrong or you do not have subfolder events implemented at the moment?