lookit / lookit/lookit-api

SHA hash and moment not defined errors (participant analytics and contact pages)

Open
#1,133 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12
Forks
21
Avg merge
5d 19h
Merged PRs (30d)
5

Description

On the `develop` branch, there are console errors on the participant analytics (`/exp/studies/analytics`) and participant contact (`exp/studies//contact`) pages saying that
1. None of the “sha512” hashes in the integrity attribute match the content of the subresource.
2. Uncaught ReferenceError: moment is not defined.

Local develop branch:

![Screenshot 2023-03-10 at 9 55 42 AM](https://user-images.githubusercontent.com/9041788/224390559-748bd01e-b759-4592-89a2-2e35215a6b54.png)

Staging:

![Screenshot 2023-03-10 at 10 06 15 AM](https://user-images.githubusercontent.com/9041788/224392139-f91271e7-a29a-4c21-b965-9e49e2018c36.png)

The production site does not show these errors. Although it does show the same warning about failing to load the gtag file that occurs on staging.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the console errors on /exp/studies/analytics and /exp/studies//contact using the develop branch, then inspect the page resources and their integrity attributes. Done means the reported sha512 mismatch and “moment is not defined” errors no longer occur on those pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.