Error - Attempt to call method setUserId

I am getting the error 

attempt to call method 'setUserId' (a nil value)

when trying to call the setUserId method using the loadBalancing client 

The same error is got for getUserId as well…
 

The docs have those funcitons…
Are these functions deprecated or something ? 
 

Hi,

Sorry for late reply.

Do you use corona plugin or downloadable Corona sdk package?

These functions are new. Latest plugin version should be downloaded automatically at your application start in Corona simulator. Also photon plugin page http://docs.coronalabs.com/daily/plugin/photon/ has links to downloadable versions of plugin (for Corona Enterprise).

For latest sdk version download: https://www.exitgames.com/Download/Turnbased.Photon_v4.Photon-Corona-Sdk_v4-0-0-0.zip

Note: latest sdk is on ‘turnbased’ section of site while ‘realtime’ contains outdated version. To be fixed soon.

I was actually using an older Corona version, and it was apparently downloading the older plugin version.  That was the reason for the error. 
Works good now! 

:smiley:

Good to know it’s working now!

Let us know how you do with Photon.

Hi,

Sorry for late reply.

Do you use corona plugin or downloadable Corona sdk package?

These functions are new. Latest plugin version should be downloaded automatically at your application start in Corona simulator. Also photon plugin page http://docs.coronalabs.com/daily/plugin/photon/ has links to downloadable versions of plugin (for Corona Enterprise).

For latest sdk version download: https://www.exitgames.com/Download/Turnbased.Photon_v4.Photon-Corona-Sdk_v4-0-0-0.zip

Note: latest sdk is on ‘turnbased’ section of site while ‘realtime’ contains outdated version. To be fixed soon.

I was actually using an older Corona version, and it was apparently downloading the older plugin version.  That was the reason for the error. 
Works good now! 

:smiley:

Good to know it’s working now!

Let us know how you do with Photon.