[PR #811] [MERGED] Fix text attribute for Response object #1022

Closed
opened 2026-02-28 00:03:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/spotipy-dev/spotipy/pull/811
Author: @moehmeni
Created: 5/19/2022
Status: Merged
Merged: 6/18/2022
Merged by: @stephanebruckert

Base: masterHead: master


📝 Commits (2)

  • 573e5de Fix text attribute for Response object
  • f63ab9d Add a changelog for the AttributeError PR

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 spotipy/oauth2.py (+1 -1)

📄 Description

I got

'Response' object has no attribute 'txt'

for a request and realized the correct attribute is text not txt for the Response object.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/spotipy-dev/spotipy/pull/811 **Author:** [@moehmeni](https://github.com/moehmeni) **Created:** 5/19/2022 **Status:** ✅ Merged **Merged:** 6/18/2022 **Merged by:** [@stephanebruckert](https://github.com/stephanebruckert) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`573e5de`](https://github.com/spotipy-dev/spotipy/commit/573e5de37772a43b8c435de5fc092275d568d10e) Fix text attribute for Response object - [`f63ab9d`](https://github.com/spotipy-dev/spotipy/commit/f63ab9d7db2063e7218f72aff15991527601ce94) Add a changelog for the AttributeError PR ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `spotipy/oauth2.py` (+1 -1) </details> ### 📄 Description I got ``` 'Response' object has no attribute 'txt' ``` for a request and realized the correct attribute is [`text`](https://docs.python-requests.org/en/latest/api/#requests.Response.text) not `txt` for the `Response` object. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:03:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#1022
No description provided.