Search Unity

Remote setting - error 401 (unauthorized by server)

Discussion in 'Unity Analytics' started by haim96, Jun 4, 2017.

  1. haim96

    haim96

    Joined:
    May 24, 2013
    Posts:
    107
    hi,

    i'm trying to use remote settings but can't get it work.
    when insert the project ID i get error 401.
    i tried to unlink and link again the project. still not working.
    unity version 5.6.1
    analytics works fine...

    any idea?
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @haim96

    You shouldn't need to insert your Project ID anywhere.

    You will need your "Project Secret Key". You can find this in the Configure page of your dashboard:

    enable_remote_settings.png enable_remote_settings_2.png
     
    haim96 likes this.
  3. haim96

    haim96

    Joined:
    May 24, 2013
    Posts:
    107
    shame on me... i missed that and now it works!

    (and you also cleaned the blog from my comment... thanks! hope no one saw it :rolleyes:)

    thanks!
     
    Last edited: Jun 5, 2017
    ap-unity likes this.
  4. ccvannorman

    ccvannorman

    Joined:
    Jan 20, 2013
    Posts:
    13
    I'm using my project ID and the project secret Key (as the API key in Unity analytics), but it still returns 401 unauthorized.
     
  5. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @ccvannorman,

    What version of the Editor are you using? And which version of the Remote Settings plugin are you using?

    Also, I just want to note that Remote Settings is available without using the plugin. The plugin is mostly for the RemoteSettings Component.

    If you are using scripting to access your Remote Settings, you can do so without the plugin (if you are using 2017.1+). This means you will not need to use the API Key at all.
     
  6. tataygames

    tataygames

    Joined:
    Aug 4, 2016
    Posts:
    55
    Hi can you link us to it, really cant find it
     
  7. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446