Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get All Phone Numbers via API call #94

Closed
TomaszOnePilot opened this issue Dec 27, 2024 · 1 comment
Closed

Cannot get All Phone Numbers via API call #94

TomaszOnePilot opened this issue Dec 27, 2024 · 1 comment

Comments

@TomaszOnePilot
Copy link

TomaszOnePilot commented Dec 27, 2024

PHP version : 8.1.29

Hello 👋 We just passed from 2.8.1 to v3.0.0 for this package, and it caused some issues when trying to do API calls.

Doing this :

$telnnyx_api_key = 'xxxxxxxxxxxxxx';
$params = [
            'page' => [
                'number' => 1,
                'size' => 25,
            ],
            'filter[tag]' => 'my_tag',
];

PhoneNumber::all([$params], $telnyx_api_key);

Is provoking that :

Telnyx\Exception\ApiConnectionException
Could not connect to Telnyx (http://localhost:12111/v2/phone_numbers?page[number]=1&page[size]=25&filter[tag]=env_production).  Please check your internet connection and try again.  If this problem persists, you should check Telnyx's service status at http://status.telnyx.com/, or let us know at [email protected].

(Network error [errno 7]: Failed to connect to localhost port 12111: Connection refused)

Do you have an idea of why it is failing ?

@TomaszOnePilot
Copy link
Author

Duplicate of #91

@TomaszOnePilot TomaszOnePilot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant