Import fails to authenticate, tweet_feed doesn't handle the error

Created on 14 July 2023, over 1 year ago

Problem/Motivation

Importing a feed using tweet_feed 7.x-1.x currently hits an error processing the Twitter responses:

TypeError: array_pop(): Argument #1 ($array) must be of type array, stdClass given in array_pop() [error]
(line 274 of tweet_feed.module).

I added print_r($tdata) just above that line and this is what it looks like:

stdClass Object
(
    [statuses] => stdClass Object
        (
            [errors] => Array
                (
                    [0] => stdClass Object
                        (
                            [code] => 32
                            [message] => Could not authenticate you.
                        )

                )

        )

)

Proposed resolution

Fix the bug.

Remaining tasks

Fix the bug.

User interface changes

Tweet import failures are handled gracefully and don't WSOD.

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024