crisp-im / crisp-im/php-crisp-api

Invalid response data

Open
#29 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
59
Forks
26
PR merge metrics
No merged PRs in 30d

Description

I'm calling updatePeopleData() and it returns an empty array. I debugged it and looks like the code is returning $responseData["data"] which does not exists.

Screenshot from 2021-08-31 09-31-09

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the updatePeopleData() entry point and inspect how its response is assigned to $responseData["data"]. Compare that lookup with the response shown in the linked screenshot and verify the function returns the people data rather than an empty array. Done means the reported response is handled correctly and updatePeopleData() no longer returns an empty array for it.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.