fbsamples / original-coast-clothing

Sample Messenger App - Original Coast Clothing
https://fb.me/get-sample-oc
Other
201 stars 229 forks source link

Fix malformed NLP url #106

Closed akotadi closed 2 years ago

akotadi commented 2 years ago

Is your pull request related to a problem? Please describe

While the sample tutorial, a error was shown for the NLP saying Unable to activate built-in NLP: Bad Request while doing the app setup configuration on link http://<APP_HOST_URL>/profile?mode=all&verify_token=<VERIFY_TOKEN> image

Describe the solution

The error is a malformed URL on: https://github.com/fbsamples/original-coast-clothing/blob/main/services/graph-api.js#L214 Just change the line for: let url = new URL(`${config.apiUrl}`/me/nlp_configs);

Test plan

https://user-images.githubusercontent.com/26100917/167716327-4b4d9310-4234-4b51-b5e2-72277d90ee02.mov

Checklist

facebook-github-bot commented 2 years ago

@akotadi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.