Skip to content

bug: Onboarding/setup issue #4228

Closed
Closed

Description

@ionitron-bot

Original issue by @samora on 2019-11-24T15:40:27Z

Bug Report

Ionic version:

[x] 5.4.8

Current behavior:
I'm setting up a project for the first time and getting an error when I run ionic link in the terminal.

At the GitHub linking step I get this error when the browser is opened.

URL bar:

https://api.ionicjs.com/?error=redirect_uri_invalid&error_description=The+redirect_uri+MUST+be+a+valid+URL&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fbuilding-oauth-apps%2Fauthorization-options-for-oauth-apps%2F%23redirect-urls&state=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzQ2MDk0MjYsInVzZXJfaWQiOjIyMjQ1NjJ9.XBmfE4jMj9Yu4WlLHtqhJFeUhDzzvmz8rBI1w8W5muI

Body:

{"error": {"link": null, "message": "404 Not Found: The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.", "type": "NotFound"}, "meta": {"status": 404, "request_id": null, "version": "2.0.0-sdlc-beta.0"}}

Expected behavior:
I should be able to see the GitHub login/authentication page.

Steps to reproduce:
New project. After ionic start ..., then ionic link.

Related code:

ionic start newApp
ionic link

Other information:

Ionic info:

Ionic:

   Ionic CLI       : 5.4.8 (/Users/samoradake/.nvm/versions/node/v12.13.0/lib/node_modules/ionic)
   Ionic Framework : @ionic/react 4.11.5

Utility:

   cordova-res : not installed
   native-run  : not installed

System:

   NodeJS : v12.13.0 (/Users/samoradake/.nvm/versions/node/v12.13.0/bin/node)
   npm    : 6.12.0
   OS     : macOS Catalina

Activity

  1. ltm commented on Nov 25, 2019

    @ltm
    Contributor

    Fixed in #4230

  2. imhoffd commented on Nov 25, 2019

    @imhoffd
    Contributor

    This is fixed in 5.4.9 (just released). Thanks for the report!

  3. pablojaku commented on Mar 21, 2020

    @pablojaku

    I apologize, but I'm experiencing this issue with Ionic CLI 6.3.00

    the following are the steps in the CLI

    ➜  DVR git:(master) ionic link  
    ? What would you like to do? Link an existing app on Ionic Appflow
    ✔ Looking up your apps - done!
    ? Which app would you like to link DVR (#####)
    ✔ Looking up app ######- done!
    
    [INFO] Ionic Appflow uses a git-based workflow to manage app updates.
    
           You will be prompted to set up the git host and repository for this new app. See the docs[1] for more
           information.
    
           [1]: https://ion.link/appflow-git-basics
    
    ? Which git host would you like to use? GitHub
    
    [INFO] GitHub OAuth setup required.
    
           To continue, we need you to authorize Ionic Appflow with your GitHub account. A browser will open and prompt you
           to complete the authorization request. When finished, please return to the CLI to continue linking your app.
    ? Open browser: Yes
    ? Authorized and ready to continue: (Y/n) 

    and the last step open a link to https://github.com/login/oauth/authorize?response_type=code which responds with a 404

    My local Ionic set-up is

    Ionic:
    
       Ionic CLI       : 6.3.0 (/home/jaku/.nvm/versions/node/v10.19.0/lib/node_modules/@ionic/cli)
       Ionic Framework : @ionic/react 5.0.5
    
    Capacitor:
    
       Capacitor CLI   : 1.5.1
       @capacitor/core : 1.5.1
    
    Utility:
    
       cordova-res : not installed
       native-run  : not installed
    
    System:
    
       NodeJS : v10.19.0 (/home/jaku/.nvm/versions/node/v10.19.0/bin/node)
       npm    : 6.14.3
       OS     : Linux 4.4

    Running on WSL.

    Same as the original poster, I'm trying to build my first Ionic app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions