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

Internal Error: Failure to open Required file #42

Closed
Rcuz8 opened this issue May 12, 2024 · 1 comment
Closed

Internal Error: Failure to open Required file #42

Rcuz8 opened this issue May 12, 2024 · 1 comment

Comments

@Rcuz8
Copy link

Rcuz8 commented May 12, 2024

Description

I followed the setup steps:

$ git clone https://github.com/akashrchandran/spotify-lyrics-api.git
$ cd spotify-lyrics-api
$ php -S localhost:8000 api/index.php

And, when pinging an endpoint, The server threw a Failure to open Required file error on this line:

require_once __DIR__ . '/../vendor/autoload.php';

Potential fix

The issue resolved when I changed the line above to:

require_once __DIR__ . '/../src/Spotify.php';
require_once __DIR__ . '/../src/SpotifyException.php';
@akashrchandran
Copy link
Owner

This is for when you're using the API as a package to obtain lyrics. Rather than downloading the repository, you should use Composer to install it.

composer require akashrchandran/spotify-lyrics-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants