larksuite / larksuite/oapi-sdk-python

use response.data Got AttributeError: 'InternalAppAccessTokenResponse' object has no attribute 'data'

Open
#53 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
559
Forks
102
PR merge metrics
No merged PRs in 30d

Description

samples/api/auth/v3/internal_app_access_token_sample.py

lark.logger.info(lark.JSON.marshal(response.data, indent=4))  

AttributeError: 'InternalAppAccessTokenResponse' object has no attribute 'data'

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

Open samples/api/auth/v3/internal_app_access_token_sample.py and inspect the InternalAppAccessTokenResponse definition to identify the response field available for logging. Update the sample so it no longer accesses the missing data attribute, then run the sample or relevant project checks and confirm the error is gone.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication
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.