[DOCS-12072] MongoDB Stitch Dashboard stitch-cli import command missing --project-id flag Created: 25/Sep/18  Updated: 27/Oct/23  Resolved: 12/Oct/18

Status: Closed
Project: Documentation
Component/s: Stitch
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial - P5
Reporter: Daniel Helfand Assignee: Nicholas Larew
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Participants:
Days since reply: 5 years, 17 weeks, 2 days ago

 Description   

Description

The documentation for the dashboard tutorial contains the following language for a step:

----------------------------------------------------------------------------------------

Import the Application Directory

Run the following command from within the dashboard-stitch directory to create and populate your Stitch application:

stitch-cli import

You will be prompted by stitch-cli to create a new application. Respond affirmatively, then provide your Atlas Project Name and a descriptive name of your choosing for the application, e.g. dashboard-tutorial. You can find your Atlas Project Name listed on the Settings page of the Atlas UI.

----------------------------------------------------------------------------------------

 

When you attempt to run stitch-cli import }}as specified in the instructions, the following error will occur after entering an App Name: {{failed to find Project: an unexpected server error has occurred. This is due to not specifying the --project-id=xxxx flag when running the stitch-cli import command above. Adding the project id flag as shown below resolves the issue:

stitch-cli import --project-id=xxxxx

 

Please reference this Stack Overflow question for more information: https://stackoverflow.com/questions/51428041/mongodb-stitch-cli-import-failed

 

 I would recommend adding information about adding the project id to the dashboard tutorial instructions found here:

https://docs.mongodb.com/stitch/tutorials/dashboard/

 

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Daniel Helfand [ 16/Oct/18 ]

I would argue that you might want to include a warning or small note in the tutorial documentation about this issue/how to resolve it, but thanks for looking into it.

Comment by Nicholas Larew [ 12/Oct/18 ]

Based on conversations with the team this issue arose from an Atlas timeout issue. The documented syntax is correct and works correctly outside of the scope of this timeout. Closing as the timeout is an intermittent issue that's not related to the tutorial.

Comment by Daniel Helfand [ 25/Sep/18 ]

Hi Nick,

Thanks for getting back to me on this. The version of the stitch-cli I'm using is 1.1.0.

 

My process when doing the tutorial to get to the error was running the following commands:

stitch-cli login --username=<MY USERNAME> --api-key=<MY API KEY>

stitch-cli import

 

Running the command below resolved the issue:

stitch-cli import --project-id=<MY PROJECT ID>

 

I installed the stitch-cli via npm install -g mongodb-stitch-cli.

 

I have been able to reproduce this error following the steps above.

 

Please let me know if there's any additional information I can provide.

Comment by Nicholas Larew [ 25/Sep/18 ]

Hi Daniel,

Thanks for filing a Docs ticket!

I think you may be encountering a bug with an out-of-date version of stitch-cli. The current version is 1.1.0.
The internal app creation process changed slightly with the 1.1.0 release which is likely the source of your issue.

Would you mind checking your CLI version for me? If that's not the cause, we can dive deeper into the issue.

You can check your CLI version by running stitch-cli --version.
You can update to the latest version of the CLI by running npm update -g mongodb-stitch-cli (or by replacing the binary if you did a manual install).


Nick Larew
Sr. Technical Writer, MongoDB

Generated at Thu Feb 08 08:04:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.