microsoftgraph / microsoftgraph/msgraph-sdk-php
requests are not asynchronous
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 669
- Forks
- 150
- Avg merge
- 15h 21m
- Merged PRs (30d)
- 3
Description
It seesm the requests aren't really asynchronous as stated in the readme ("The SDK is designed to make async requests by default").
$t = microtime(true);
$r = $graphServiceClient->users()->byUserId($user_id)->get();
print_r($r); // => fullfilled promise, already contains data
var_dump(number_format(microtime(true) - $t, 3)); // about 400ms later
Is this a bug or could this be environment related?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README statement that requests are asynchronous and reproduce the issue using the shown users()->byUserId($user_id)->get() call. Compare the returned promise and elapsed time with the documented behavior, then determine whether the result is an SDK bug or environment-related and record the evidence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100