Can't access JSON properties of what octokit returned #445
              
                Unanswered
              
          
                  
                    
                      aaronliu0130
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Workflow: https://github.com/aaronliu0130/TerminalImageViewer/commits/cimg/.github/workflows/test.yml
Runs: https://github.com/aaronliu0130/TerminalImageViewer/actions/workflows/test.yml
I've been trying to use GitHubScript's octokit to fetch the latest tag of a repository. Every time I try to access .data , it reports as undefined. However, if I copy and past the JSON into my browser and do .data[0], it gives me the object I want. What the heck is happening and how can I fix this?
Beta Was this translation helpful? Give feedback.
All reactions