aliyun / aliyun/openapi-sdk-php

AlibabaCloud\Tea\Utils\Utils::isUnset(): Argument #1 ($value) cannot be passed by reference

Open
#208 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
530
Forks
110
PR merge metrics
No merged PRs in 30d

Description

Error

AlibabaCloud\Tea\Utils\Utils::isUnset(): Argument #1 ($value) cannot be passed by reference

at vendor/alibabacloud/darabonba-openapi/src/OpenApiClient.php:726
722▕ $_lastRequest = $_request;
723▕ $_response = Tea::send($_request, $_runtime);
724▕ if (Utils::is4xx($_response->statusCode) || Utils::is5xx($_response->statusCode)) {
725▕ $err = [];
➜ 726▕ if (!Utils::isUnset(@$_response->headers['content-type']) && Utils::equalString(@$_response->headers['content-type'], 'text/xml;charset=utf-8')) {
727▕ $_str = Utils::readAsString($_response->body);
728▕ $respMap = XML::parseXml($_str, null);
729▕ $err = Utils::assertAsMap(@$respMap['Error']);

Contributor guide

Open the contributing guide

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 by reproducing the reported PHP error and inspect vendor/alibabacloud/darabonba-openapi/src/OpenApiClient.php around line 726, including the Utils::isUnset call and nearby response handling. Trace the dependency version and existing tests or fixtures for this error path; done means the failing request path completes without the by-reference argument error.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, php
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.