Skip to content

[Sentry MBTA-DOTCOM-13G] FunctionClauseError: no function clause matching in Access.get/3 - #3678

Merged
lvachon1 merged 2 commits into
mainfrom
lev/fix/invalid_schedule_direction_shape
Nov 13, 2026
Merged

lvachon1 merged 2 commits into
mainfrom
lev/fix/invalid_schedule_direction_shape

Conversation

@lvachon1

Copy link
Copy Markdown
Contributor

Scope

Asana Ticket: [Sentry MBTA-DOTCOM-13G] FunctionClauseError: no function clause matching in Access.get/3

Implementation

It looks like crawlers are guessing at params and causing errors.

I added logic to force schedule_direction to be a map even when the parameters passed in via URL are not

Screenshots

N/A

How to test

http://mbta.com/schedules/350/line?schedule_direction=0 (Crashes)
http://localhost:4001/schedules/350/line?schedule_direction=0 (Doesn't!)

…ameters passed in the URL are not (crawlers)
@lvachon1
lvachon1 requested a review from a team as a code owner November 12, 2026 20:52
@lvachon1
lvachon1 requested a review from thecristen November 12, 2026 20:52

@thecristen thecristen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable!

@lvachon1
lvachon1 merged commit d0708df into main Nov 13, 2026
23 checks passed
@lvachon1
lvachon1 deleted the lev/fix/invalid_schedule_direction_shape branch November 13, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants