Film Finder Project API

It doesn’t look like I can even connect the API…

Hi I’m struggling to connect to the API - must I use a new key evertime I try? When I use my key and put the URL in the first lines of code.

https://www.codecademy.com/courses/learn-javascript-requests/projects/js-film-finder

const tmdbKey = ‘’;

const tmdbBaseUrl = ‘https://api.themoviedb.org/3’;

And I look at the console…This is what I get

useSetDatadogContext.ts:31 Datadog Browser SDK: The global context data exceeds the recommended 3KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning
c @ heavyCustomerDataWarning.js:16
(anonymous) @ contextManager.js:21
throttled @ functionUtils.js:20
add @ contextManager.js:31
(anonymous) @ rumPublicApi.js:103
f @ monitor.js:43
(anonymous) @ monitor.js:37
O @ useSetDatadogContext.ts:31
value @ Platform.tsx:168
uX @ react-dom.production.min.js:261
e @ react-dom.production.min.js:260
(anonymous) @ react-dom.production.min.js:260
oU @ react-dom.production.min.js:283
oP @ react-dom.production.min.js:273
r8 @ react-dom.production.min.js:127
(anonymous) @ react-dom.production.min.js:267
Show 14 more frames
Show less
heavyCustomerDataWarning.js:16 Datadog Browser SDK: The feature flag evaluation data exceeds the recommended 3KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning
c @ heavyCustomerDataWarning.js:16
(anonymous) @ featureFlagContext.js:39
(anonymous) @ functionUtils.js:28
f @ monitor.js:43
(anonymous) @ monitor.js:37
Show 5 more frames
Show less
fs-debug.js:4 script version 8be08e84279ee7ac68388bb048d03632964d93c9 (compiled at 1712961310)
fs-debug.js:4
script: edge.fullstory.com/s/fs-debug.js
recording host: rs.fullstory.com
cdn host: edge.fullstory.com
orgid: P1PZM
captureOnStartup: true

2fs-debug.js:4 Processing api: setProperties
fs-debug.js:4 Received unknown message.
fs-debug.js:4 Disabling FS.
/api/learning_environment/progress/project/58f199b018cd46bdbdb2a352c509961e:1

   Failed to load resource: the server responded with a status of 400 ()

workspace.production-eks.codecademy.com/v2/default_workspaces/javascript-film-finder/checkpoints/js-film-finder-initial:1

   Failed to load resource: the server responded with a status of 404 ()

www-widgetapi.js:1253 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘https://www.codecademy.com’).
r.sendMessage @ www-widgetapi.js:1253
www-widgetapi.js:1253 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘https://www.codecademy.com’).
r.sendMessage @ www-widgetapi.js:1253
www-widgetapi.js:1253 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin (‘https://www.codecademy.com’).
r.sendMessage @ www-widgetapi.js:1253
workspace.production-eks.codecademy.com/v2/default_workspaces/javascript-film-finder/checkpoints/js-film-finder-initial:1

   Failed to load resource: the server responded with a status of 404 ()

/api/learning_environment/progress/project/58f199b018cd46bdbdb2a352c509961e:1

   Failed to load resource: the server responded with a status of 400 ()

Node cannot be found in the current page.
script.js:27 Uncaught TypeError: Cannot read properties of undefined (reading ‘then’)
at script.js:27:12
(anonymous) @ script.js:27

@fredfullstack ,
Looking at your error, if you look at the very bottom it looks like it is pointing you to look at line 27 in your script.js file. Have you looked at that already?

Freddie