What's causing the api call error when using composables? - Nuxt