-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Konnect syncing fails for certain user types #736
Comments
Which api is this? Can you give the link? |
It'll be good to have the link /curl to test the API. However, the types GO, HM, EO are not there in the usertype table. That must be the issue. |
@prajdataspect https://www.getpostman.com/collections/486f337b22b5d7333f51 contains all the Konnect API end points.
Can you please write a management script that creates these user types? |
insert into stories_usertype values (10, 'GO'); Did the above in dev and the test case worked successfully. Here you go: id | user_id | school_id | group_id | is_verified | name | email | date | telephone | entered_timestamp | comments | sysid | created_at | date_of_visit | updated_at | user_type_id | location |
When the sync data contains user (respondent) types of GO, HM and EO, the sync fails. Sample data -
{"stories":[{"synced":0,"sysid":"","group_id":18,"image":"","respondent_type":"GO","created_at":1505988827423,"school_id":1919,"_id":1,"lat":0,"user_id":1825,"lng":0,"answers":[{"text":"Yes","question_id":144,"created_at":1503906234111,"_id":41,"story_id":1},{"text":"Yes","question_id":138,"created_at":1503906234111,"_id":42,"story_id":1},{"text":"Yes","question_id":147,"created_at":1503906234111,"_id":43,"story_id":1},{"text":"Yes","question_id":270,"created_at":1503906234111,"_id":44,"story_id":1},{"text":"Yes","question_id":145,"created_at":1503906234111,"_id":45,"story_id":1},{"text":"Yes","question_id":143,"created_at":1503906234111,"_id":46,"story_id":1},{"text":"Yes","question_id":269,"created_at":1503906234111,"_id":47,"story_id":1},{"text":"Yes","question_id":148,"created_at":1503906234111,"_id":48,"story_id":1},{"text":"Yes","question_id":150,"created_at":1503906234111,"_id":49,"story_id":1},{"text":"Yes","question_id":149,"created_at":1503906234111,"_id":50,"story_id":1},{"text":"Yes","question_id":143,"created_at":1505988827423,"_id":51,"story_id":1},{"text":"Yes","question_id":269,"created_at":1505988827423,"_id":52,"story_id":1},{"text":"Yes","question_id":270,"created_at":1505988827423,"_id":53,"story_id":1},{"text":"Yes","question_id":149,"created_at":1505988827423,"_id":54,"story_id":1},{"text":"Yes","question_id":145,"created_at":1505988827423,"_id":55,"story_id":1},{"text":"Yes","question_id":148,"created_at":1505988827423,"_id":56,"story_id":1},{"text":"Yes","question_id":147,"created_at":1505988827423,"_id":57,"story_id":1},{"text":"Yes","question_id":138,"created_at":1505988827423,"_id":58,"story_id":1},{"text":"Yes","question_id":150,"created_at":1505988827423,"_id":59,"story_id":1},{"text":"Yes","question_id":144,"created_at":1505988827423,"_id":60,"story_id":1}]}]}
The text was updated successfully, but these errors were encountered: