Coder Social home page Coder Social logo

Comments (3)

justinbass avatar justinbass commented on September 27, 2024

Here is some expanded log information (apologies for the giant blocks). I ran everything in Chrome version 43. No difference between local SimpleHTTPServer and driveplayer.com.

The Chrome console log when trying to play the 'You are not authorized...' song:

GET https://content.googleapis.com/drive/v2/files/0BwJXpSIJJBiyQkZGa0RLcTFmUkk 404 (OK)zu @ cb=gapi.loaded_0:99n @ cb=gapi.loaded_0:99Cu @ cb=gapi.loaded_0:99(anonymous function) @ cb=gapi.loaded_0:100g @ cb=gapi.loaded_0:56c @ cb=gapi.loaded_0:47
dmp.drive.js:105 Error while fetching the file's metadata: File not found: 0BwJXpSIJJBiyQkZGa0RLcTFmUkk
cb=gapi.loaded_0:99 GET https://content.googleapis.com/drive/v2/files/0BwJXpSIJJBiyQkZGa0RLcTFmUkk 404 (OK)zu @ cb=gapi.loaded_0:99n @ cb=gapi.loaded_0:99Cu @ cb=gapi.loaded_0:99(anonymous function) @ cb=gapi.loaded_0:100g @ cb=gapi.loaded_0:56c @ cb=gapi.loaded_0:47
dmp.drive.js:105 Error while fetching the file's metadata: File not found: 0BwJXpSIJJBiyQkZGa0RLcTFmUkk
cb=gapi.loaded_0:99 GET https://content.googleapis.com/drive/v2/files/0BwJXpSIJJBiyQkZGa0RLcTFmUkk 404 (OK)zu @ cb=gapi.loaded_0:99n @ cb=gapi.loaded_0:99Cu @ cb=gapi.loaded_0:99(anonymous function) @ cb=gapi.loaded_0:100g @ cb=gapi.loaded_0:56c @ cb=gapi.loaded_0:47
dmp.drive.js:105 Error while fetching the file's metadata: File not found: 0BwJXpSIJJBiyQkZGa0RLcTFmUkk
dmp.player.js:125 Next song index is: 670
dmp.player.js:143 Now playing song: [object Object]
cb=gapi.loaded_0:99 GET https://content.googleapis.com/drive/v2/files/0BwJXpSIJJBiyQkZGa0RLcTFmUkk 404 (OK)zu @ cb=gapi.loaded_0:99n @ cb=gapi.loaded_0:99Cu @ cb=gapi.loaded_0:99(anonymous function) @ cb=gapi.loaded_0:100g @ cb=gapi.loaded_0:56c @ cb=gapi.loaded_0:47
dmp.drive.js:105 Error while fetching the file's metadata: File not found: 0BwJXpSIJJBiyQkZGa0RLcTFmUkk
dmp.player.js:125 Next song index is: 671
dmp.player.js:143 Now playing song: [object Object]
dmp.drive.js:123 Got the File's URL: https://doc-10-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…63125/03280214578542663125/0BwJXpSIJJBiyN1lfOWdZdExZYUk?e=download&gd=true
dmp.drive.js:126 File's URL w/ auth: https://doc-10-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…29.vwGdxEUKCOa0lyHJjIZy-hb8f6V2Czocsk4Uwrp5406BqAqNCI9rLcpYhigVWa95s7n74hM
dmp.drive.js:123 Got the File's URL: https://doc-14-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…63125/03280214578542663125/0BwJXpSIJJBiyUG9jLUVrTUJLbUU?e=download&gd=true
dmp.drive.js:126 File's URL w/ auth: https://doc-14-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…29.vwGdxEUKCOa0lyHJjIZy-hb8f6V2Czocsk4Uwrp5406BqAqNCI9rLcpYhigVWa95s7n74hM

For me, that first url/request (https://content.googleapis.com/drive/v2/files/0BwJXpSIJJBiyQkZGa0RLcTFmUkk) returns the following even now that the song is permanently fixed (perhaps it is the wrong request, or missing a key/credentials?):

{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
],
"code": 403,
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
}
}

Console log when I then try to import the single song (could not figure out how to expand the entire line and remove the ellipses, but you should be able to replicate this):

dmp.drive.js:123 Got the File's URL: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…63125/03280214578542663125/0BwJXpSIJJBiyQkZGa0RLcTFmUkk?e=download&gd=true
dmp.drive.js:126 File's URL w/ auth: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…29.vwFWUnQXwISrmltdvlgjfSR2Ht8n1mS8WTcMr46B8MkfBOsTRklyZ0KykiDVLzrLCBfc4dQ
dmp.drive.js:123 Got the File's URL: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…63125/03280214578542663125/0BwJXpSIJJBiyQkZGa0RLcTFmUkk?e=download&gd=true
dmp.drive.js:126 File's URL w/ auth: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…29.vwFWUnQXwISrmltdvlgjfSR2Ht8n1mS8WTcMr46B8MkfBOsTRklyZ0KykiDVLzrLCBfc4dQ
dmp.ui.js:298 Trying to look at ID3 tags for: You Make Me Feel....mp3
id3.js:45 Found ID tag type. Using reader: ID3 v2

Playing that song from the playlist, which now works:

Got the File's URL: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…63125/03280214578542663125/0BwJXpSIJJBiyQkZGa0RLcTFmUkk?e=download&gd=true
dmp.drive.js:126 File's URL w/ auth: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…29.vwFWUnQXwISrmltdvlgjfSR2Ht8n1mS8WTcMr46B8MkfBOsTRklyZ0KykiDVLzrLCBfc4dQ
dmp.drive.js:123 Got the File's URL: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…63125/03280214578542663125/0BwJXpSIJJBiyQkZGa0RLcTFmUkk?e=download&gd=true
dmp.drive.js:126 File's URL w/ auth: https://doc-0g-ac-docs.googleusercontent.com/docs/securesc/odsuq6818a7mlmet…29.vwFWUnQXwISrmltdvlgjfSR2Ht8n1mS8WTcMr46B8MkfBOsTRklyZ0KykiDVLzrLCBfc4dQ

Those links download the song for me since they have the appropriate credentials. It appears that the initial request is not authenticated, but if it's a Google Drive API issue with allotting only so many keys per second, why would it work for 100 songs and not 700 slowed down by a factor of 10 or more?

from drive-music-player.

justinbass avatar justinbass commented on September 27, 2024

A few months later, I have found that just importing about 100 songs at a time into any playlist seems to fix/hack the issue permanently.

from drive-music-player.

sauerd avatar sauerd commented on September 27, 2024

@justinbass you seem to be the only person here with the knowledge to address issues. i apologize for hijacking your post, but PLEASE, tell me how to delete playlists. i have made a series of new post regarding the issue that are not receiving any responses.

from drive-music-player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.