question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

screen shot 2018-05-29 at 5 38 45 am

Environment

Environment:
  OS: macOS High Sierra 10.13.4
  Node: 10.2.1
  Yarn: 1.7.0
  npm: 5.6.0
  Watchman: 4.9.1
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.1 AI-173.4720617

Packages: (wanted => installed) react: 16.3.1 => 16.3.1 react-native: https://github.com/expo/react-native/archive/sdk-27.0.2.tar.gz => 0.55.2

Steps to Reproduce

exp start

Expected Behavior

Auth catches some error, not empty error message.

Actual Behavior

Auth catches empty error message 😕

Here’s my repo:

I’m using a detached/ejected Expo app on the lastest versions. Latest verion of Yarn. Latest Android Studio. I followed @3DEsprit’s quick intro article and have spent many hours getting this to work on Android SDK 27 and Expo. I hope the issue is just something small and silly that someone might spot right away.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
wmcmahancommented, May 29, 2018

Hi @mikeumus, a few thoughts. First, its not necessary to check authorization before requesting permission; authorizeEventStore will do this already. Also, catching the error from the request.

componentWillMount() {
  RNCalendarEvents.authorizeEventStore()
    .then((out) => {
      if (out === 'authorized') {
        this.setState({ cal_auth: out })
      }
     })
     .catch(error => console.warn('Auth Error: ', error));
  }

You will also need this line when requesting permissions.

1reaction
wmcmahancommented, May 30, 2018

Maybe, I have not used Expo so unfortunately I’m not sure how to integrate external packages with it. But it does appear that they have a Permissions object - Expo docs - that handles basically does the same as authorizeEventStore.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AuthError - Username cannot be empty - Stack Overflow
The problem is that you are not updating loginAttributes value, you are simply redefining the loginAttributes value.
Read more >
Auth error Error: Token is empty. Please check your backend ...
I have a problem I have no idea what is wrong. After get at my token endpoint(Json API) in JWT token mode(authenticator:jwt) :...
Read more >
Authenticator app error code "device token is empty"
So I asked the administrator on this shared email account to send me a new QR code and I got the error message...
Read more >
ClientAuthError | microsoft-authentication-libraries-for-js
Throws error when attempting to append null or empty ScopeSet. Parameters. appendError: string. Returns ClientAuthError. Static createBindingKeyNotRemovedError.
Read more >
Admin Authentication API Errors | Firebase - Google
It must be a non-empty string. auth/invalid-dynamic-link-domain, The provided dynamic link domain is not configured or authorized for the current project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found