{"record":{"id":"10b478d4828c55ae","repo":"Semantic-Org/Semantic-UI","slug":"no-url-specified","errorCode":null,"errorMessage":"No URL specified","messagePattern":"No URL specified","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/definitions/modules/embed.js","lineNumber":618,"sourceCode":"\n  onDisplay            : function() {},\n  onPlaceholderDisplay : function() {},\n  onReset              : function() {},\n  onCreate             : function(url) {},\n  onEmbed              : function(parameters) {\n    return parameters;\n  },\n\n  metadata    : {\n    id          : 'id',\n    icon        : 'icon',\n    placeholder : 'placeholder',\n    source      : 'source',\n    url         : 'url'\n  },\n\n  error : {\n    noURL  : 'No URL specified',\n    method : 'The method you called is not defined'\n  },\n\n  className : {\n    active : 'active',\n    embed  : 'embed'\n  },\n\n  selector : {\n    embed       : '.embed',\n    placeholder : '.placeholder',\n    icon        : '.icon'\n  },\n\n  sources: {\n    youtube: {\n      name   : 'youtube',\n      type   : 'video',","sourceCodeStart":600,"sourceCodeEnd":636,"githubUrl":"https://github.com/Semantic-Org/Semantic-UI/blob/597843ab84d565cccfd8fd7719416350ae73e734/src/definitions/modules/embed.js#L600-L636","documentation":"The Embed module could not resolve a video URL. generate.embed() resolves the URL from settings.url, then the element's data-url metadata, then by combining a known source template (youtube/vimeo) with data-id; if all three are falsy it logs this via console.error and returns no iframe HTML, so the embed renders nothing.","triggerScenarios":"Initializing embed on an element with no data-source+data-id, data-url, or matching settings: $('.ui.embed').embed() on <div class=\"ui embed\"></div>. Also calling $('.ui.embed').embed('change') or ('create') without supplying source/id/url.","commonSituations":"Forgot the data-source/data-id attributes; customized metadata.url key so data-url isn't read; provided a source ('youtube') without an id; markup dropped during a refactor.","solutions":["Add data-source and data-id (or data-url) to the element: <div class=\"ui embed\" data-source=\"youtube\" data-id=\"VIDEOID\"></div>","Pass url/id/source at init: $('.ui.embed').embed({source:'youtube', id:'VIDEOID'}) or {url:'//www.youtube.com/embed/VIDEOID'}","If invoking imperatively, supply args: $('.ui.embed').embed('change', 'youtube', 'VIDEOID')"],"exampleFix":"// before\n<div class=\"ui embed\"></div>\n// after\n<div class=\"ui embed\" data-source=\"youtube\" data-id=\"2b2gSrFp8qE\"></div>","handlingStrategy":"validation","validationCode":"// Run before .embed(); ensure a URL can be resolved.\nfunction embedHasSource($el, settings) {\n  settings = settings || {};\n  var hasUrl = !!settings.url || !!$el.attr('data-url');\n  var hasSourceAndId = (!!settings.source || !!$el.attr('data-source'))\n                    && (!!settings.id || !!$el.attr('data-id'));\n  return hasUrl || hasSourceAndId;\n}\nif (!embedHasSource($('.ui.embed'))) {\n  console.warn('embed: missing url or source+id');\n} else {\n  $('.ui.embed').embed();\n}","typeGuard":"// Narrow an embed config to a valid one (url OR source+id present).\nfunction isValidEmbedConfig(c) {\n  if (!c || typeof c !== 'object') return false;\n  if (typeof c.url === 'string' && c.url) return true;\n  return (typeof c.source === 'string' && c.source)\n      && (typeof c.id === 'string' || typeof c.id === 'number');\n}","tryCatchPattern":"// Semantic UI logs to console.error (never throws), so wrap init to surface failure:\ntry {\n  var $e = $('.ui.embed');\n  if (!embedHasSource($e)) throw new Error('No URL specified');\n  $e.embed();\n} catch (err) {\n  console.error('embed init failed:', err.message);\n}","preventionTips":["Always set data-source + data-id (or data-url) on .ui.embed elements in markup","If you customize metadata.url/source/id keys, mirror those keys in your data-* attributes","Set silent:true only to suppress noise — it hides this error but does not fix the missing URL"],"tags":["embed","semantic-ui","config","video"],"backgroundTag":null,"analyzedSha":"597843ab84d565cccfd8fd7719416350ae73e734","analyzedAt":"2026-08-13T01:44:23.827Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}