radyakin / susoapi

Survey Solutions API access from Stata
1 stars 3 forks source link

problem when creating a new API client #17

Closed BOTI-david closed 2 years ago

BOTI-david commented 3 years ago

@radyakin #16 when running SuSo API from stata, I get the following error after running the command line in stata .t=.SuSo.new server login password. Is my specification for creating a client API correct? if so what is the problem...I am new to Python programming. thanks for your help Inkederreur2_LI

Originally posted by @BOTI-david in https://github.com/radyakin/susoapi/issues/16#issuecomment-915757386

radyakin commented 3 years ago
  1. Which version of the code resulted in this error message? The one published in SSC or the current one in this repository?

  2. Please retry with the version published here in this repository by downloading and replacing the SuSo.class and SuSoBase.class files and restarting Stata afterwards. Please do let know if this helped.

  3. There was a similar issue: https://github.com/radyakin/susoapi/issues/12 It is important to know whether the user is given permissions on the server. What workspaces are defined and what permissions are given to this user?

  4. Try to login using admin credentials and see if it makes any difference.

radyakin commented 2 years ago

The problem has been reproduced with the SSC-released version and the incorrect credentials specified during initiation of the API client (for the same version of the Survey Solutions server).

image

The issue is attributed to the problem with authentication data, not with the API client code.