Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

upload embed in development mode will get Notice: Undefined index and File not found when use YouTube API Key #1881

Open
everyx opened this issue May 11, 2020 · 0 comments
Labels
api bug Something isn't working

Comments

@everyx
Copy link
Contributor

everyx commented May 11, 2020

  • Version of Directus v8.6.2

  • Server, OS & Database Details: Caddy server in docker with MySQL 8

  • Error Messages:

  1. don't use youtube API key:
{"data":{"private_hash":"rh1k899g8y8c8wgs","filesize":0,"tags":[],"filename_disk":"a97bf4c8-2207-458f-8026-bf558b83399e.jpg","width":560,"checksum":null,"filename_download":"youtube_8gWWpwLN67c.jpg","height":340,"metadata":null,"title":"YouTube - 8gWWpwLN67c","duration":null,"type":"embed\/youtube","embed":"8gWWpwLN67c","uploaded_by":1,"folder":null,"id":15,"uploaded_on":"2020-05-11T02:31:58+00:00","description":null,"storage":"s3","charset":"","location":null,"data":{"full_url":"https:\/\/fengsi-io.sfo2.cdn.digitaloceanspaces.com\/api\/kingtower\/originals\/a97bf4c8-2207-458f-8026-bf558b83399e.jpg","url":"https:\/\/fengsi-io.sfo2.cdn.digitaloceanspaces.com\/api\/kingtower\/originals\/a97bf4c8-2207-458f-8026-bf558b83399e.jpg","thumbnails":null,"embed":{"html":"<iframe width=\"560\" height=\"340\" src=\"\/\/www.youtube.com\/embed\/8gWWpwLN67c\" frameborder=\"0\" allowfullscreen><\/iframe>","url":"https:\/\/www.youtube.com\/watch?v=8gWWpwLN67c"}}}}
Notice: Undefined index: fileId in /var/directus/src/core/Directus/Filesystem/Files.php on line 399
  1. use Youtube API Key:
{"error":{"code":null,"message":"File not found at path: 81064240-5cfd-4315-a99b-eb66b6c05b10","class":"League\\Flysystem\\FileNotFoundException","file":"\/var\/directus\/vendor\/league\/flysystem\/src\/Filesystem.php","line":389}}
  • Steps to Reproduce
  1. don't use youtube API key:
    bug

  2. use Youtube API Key:
    bug

@everyx everyx changed the title upload embed in development mode will get Notice: Undefined index upload embed in development mode will get Notice: Undefined index and File not found when use YouTube API Key May 11, 2020
@benhaynes benhaynes added the bug Something isn't working label May 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants