getBlocksData Error

I’ve been running a Google Calendar (new event added) → Slack app for more than 6 months with no issues. A couple of days the app stopped running after several failed attempts. This is the first time this error has popped up. Could it be the way it was typed into the calendar it can’t parse the text?

The error:

Function 'getBlocksData' finished with error! JSON for blocks is invalid.
Input

    Bundle 1Collection
        Text
        *New calendar event added:*

        >*5pm, "What is a PAC?" with Steve Vaccaro*
        >https://www.google.com/calendar/event?eid=MzM3ZW5jb2JjYW0xb3JldmRxYTY4NDE0bGkgY19vZ284YWdiMXFwZ24yOXZ1Nm90YzBwa3Uxa0Bn
        >Start: 01/22/2024 05:00 PM 
        >End: 01/22/2024 06:00 PM
        >Location: 
        >
        >Zoom link: https://us02web.zoom.us/j/5631493817?pwd=OUlob05NaVpJR3hwSlV3YnJPMUJzZz09
        >
        Parse message text: false
        BlocksLong String

        {	
        "blocks": [		
        {			
        "type": "header",			
        "text": {				
        "type": "plain_text",				
        "text": "New Calendar Event Added:",				
        "emoji": true			
        }		
        },		
        {			
        "type": "section",			
        "text": {				
        "type": "mrkdwn",				
        "text": " <https://www.google.com/calendar/event?eid=MzM3ZW5jb2JjYW0xb3JldmRxYTY4NDE0bGkgY19vZ284YWdiMXFwZ24yOXZ1Nm90YzBwa3Uxa0Bn| *5pm, "What is a PAC?" with Steve Vaccaro*>"			
        }		
        },		
        {			
        "type": "section",			
        "text": {				
        "type": "mrkdwn",				
        "text": "*Start Time:* Jan 22, 2024 05:00 PM \n *End Time:* Jan 22, 2024 06:00 PM\n *Location:* "	
        }		
        },		
        {			
        "type": "actions",			
        "elements": [				
        {					
        "type": "button",					
        "text": {						
        "type": "plain_text",						
        "text": "Open Calendar Event",				
        "emoji": true					
        },					
        "value": "click_me_123",					
        "url": "https://www.google.com/calendar/event?eid=MzM3ZW5jb2JjYW0xb3JldmRxYTY4NDE0bGkgY19vZ284YWdiMXFwZ24yOXZ1Nm90YzBwa3Uxa0Bn",					
        "action_id": "actionId-0"				
        }			
        ]		
        },		
        {
        "type": "divider"
        }		
        ]
        }
        Use markdown
        true
        Public channel
        C02UP617LA3
        User name
        HCCS Shared Calendar
        Icon emoji
        :calendar
        Channel type
        public
        Enter a channel ID or name
        list

Screenshots:



Figured it out. The bot will break if a calendar event name has quotes “” on it. I remove the quotes and ran the scenario again and it was fixed.

2 Likes

Hey there @HCCS :blob_wave:

I just wanted to congratulate you for solving this one on your own! It is amazing to see Makers working and improving at using the product. :clap:

Thank you for sharing the final solution here with us. We appreciate you keeping the community in mind so it stays healthy and neat for others.

Keep up the great job :snowflake:

1 Like