Known Issue: Google Sheets (v4) - Authorisation Error 401: disabled_client

Christian Berger
Christian Berger
  • Updated
Known Issue Id FMEENGINE-70066
Discovered

Google Sheets Package [2.1.0]

Affects

Google Sheets Package [2.1.0]

Resolved

Google Sheets Package [2.1.1]

 

Symptom 

You have a Google Sheets Web Connection under the safe.google-sheets.Google Sheets web service provided with the Sheets package. Upon approving your 2FA, the authentication will not pass the Google verification process, and a 401: disabled_client error will appear in the web service authentication dialog. 

 

Cause

The safe.google-sheets.Google Sheets web service definition provided by FME in the Sheets package v 2.1.0 currently has an unverified status. 

 

Resolution

There are a couple of resolutions available. If you are using Google Sheets in a production environment we would recommend you turn to resolution 2 and manage your own web service definition. 
 

Resolution 1: Update Google Sheets Package

This issue has been fixed in Google Sheets Package v 2.1.1.  This package is available in b21261 or newer. To update the package in FME Workbench go to Tools > FME Options > FME Packages, select and update Google Sheets. If you are using an older version of FME you can manually fix the Google Sheets Web Service Definition. 
  1. In FME Workbench go to Tools > FME Options > Web Connections
  2. Select 'Manage Services...'
  3. Find 'Google Sheets (safe.google-sheets)' and under Authorization Parameters > URL, replace the value with
    https://accounts.google.com/o/oauth2/auth?response_type=code&access_type=offline&approval_prompt=force&scope=https://www.googleapis.com/auth/spreadsheets https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/drive.file
  4. (re)authorize/create your connections

 

Resolution 2: Create your own Google Sheets App

The Google Sheets Web Service definition that is provided by Safe Software is recommended for demo purposes only. Therefore the preferred option may be to create your own Google App (client ID/secret) for use within FME. Since this is an app created by your account within Google there is no risk of access being denied in future. To do this you will need to:
  1. Visit Google API Console
  2. Create a new project

1.jfif

  1. Once in your project, configure the OAuth consent screen. You'll first need to choose if your app is for internal purposes only.

2.jfif
Then fill in some additional information about the application and publish the app. 
3.jfif

  1. Create your Client ID and Secret

4.jfif
For the application type select 'Desktop App'
5.jfif
You'll now have a new Client ID and Secret that you can set your FME Google Sheets Service to use
6.jfif
 

  1. Go to FME Desktop > FME Options and under Web Connections select 'Manage Services...'

7.jfif

  1. Find your Google Sheets (safe.google-sheet) Web Service and update the Client ID/Secret under the Client Information Header with the ones you just created.

8.png

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.