# Debrief project 62

1. **SOLVED with hard refresh**: We don't see the "Replay" tab next to Webview or Docs.


image copy 11.png
New project
Lesyk tried this in a new project and it worked fine.
The question is what within this project causes this problem?

He tried this project, and it worked.

I did a hard refresh, and I saw the "Replay" tab. 🎉

1. **BUG**:


This button opens up docs. There is no way to open the "Replay" tab unless you close all tabs and then see an option to open the Replay tab.

image copy 12.png
1. **NITPICK**:


You cannot reorder tabs:

image copy 13.png
1. **UNRELATED NITPICK**:


The subdomain should say webview not wysiwyg.

image copy 14.png
1. **NITPICK**:


We cannot open the replay tab in another window, which may be useful on small screens.

1. **BUG**:


Right side of the UI is cut-off.

image copy 15.png
image copy 16.png
1. **INCONSISTENT ICON STYLE**:


The tabs show inconsistent icon styles. Ghost icons versus full color icon for Replay.

image copy 18.png
1. **UNRELATED BUG WITH EDITOR**:


I took a screenshot and paste directly into the editor. It shows "Uploading files..." --- it never loaded so I refreshed the browser. I ended up with the wrong text there "Uploading files..." and wrong image was pasted.

image copy 17.png
1. **API function not working**


We get a 500 code with this response body:


```json
{
  "message": "u is not a function"
}
```

image copy 19.png
We simplified the function to just return a static body.

Then, Lesyk tried to reproduce in a clean project, and he hit the same "u is not a function" error.

In the logs:


```sh
[09:03:07:291]: [api-functions:@api/power-ups/index.post.ts] TypeError: u is not a function
    at S (file:///home/child_process/data/repos/org01j0wt03vft6qrqdcqgsc62ez8/prj01j7p2bgqx3553ds4qq0xh9zsg/project-62/node_modules/@redocly/realm/dist/server/api-routes/execute-api-route.js:1:703)
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
```

We tried with the weather API in our phronesis project and it worked:

image copy 20.png
Copying the working weather function into the `power-ups/index.post.ts` also doesn't work:

image copy 21.png
We attempted to move the API function location and still had no success (always "u is not a function").

image copy 22.png
1. **BUG**


**Renamed folder resulted in a unexpected 404 with Replay send**:

We didn't grab a screenshot but we renamed the `power-ups` folder to `powerups`.

1. **API Funtions Timeout Exceeded:**


We received `504`:


```
{
  "message": "Timeout exceeded"
}
```

We gave up testing power-ups and were just trying Replay with the working Weather API and then started to receive this "Timeout exceeded" message.
API functions don't seem to be working at all.

Two minutes later and it is working fine again.
This is probably an infrastructure problem, but the reliability is really really low.

Sent a few requests... two minutes later


```
{
  "message": "Timeout exceeded"
}
```

We can see this in the logs when that happens (last change processed is very slow):


```sh
[09:23:57:021]: 👀 Last change processed in 196ms
[09:24:01:369]: The 'sidebar' property in the front matter of changelog/changelog.md is deprecated. Use 'sidebar.path' instead.
[09:24:01:839]: Creating default redirect for index page => /welcome
[09:24:02:164]: 👀 Last change processed in 1439ms
```

Also, there is cross-project noisy neighbor issues. Lesyk had problems with his projects at the same time.
The problems are not always at the same time though.

1. **BUG**:


Nitpick the send button doesn't have an animation but the one in the middle/body does.

image copy 23.png
1. **BUG**:


Cannot horizontal scroll wide JSON response.

image copy 24.png
image copy 25.png
1. **UNRELATED BUG**:


Lesyk pasted an image and it didn't load for me (showed broken image).

He pasted again, and I refreshed. I noticed both files in the file tree. I could click on them and see the images.

When I loaded this file and the corresponding webview I saw a broken image now for the 2nd paste he made while the 1st one loaded.

The project status floating action button that shows pages and errors disappeared. The send button disappeared in Replay for Lesyk:

image copy 26.png
I think the project is partially unresponsive, and the logs now show "No logs available yet...".

image copy 27.png
The whole time it shows "Connected"

Finally, it loaded.

image copy 28.png
The floating action button shows no issues but the webview itself shows two broken images.

image copy 29.png
This issue seems to be reproduced when Lesyk and I both work on the same file and both paste images into it from our clipboards.

I guess that when this "last change processed" gets slow (sometimes over 10,000ms) that's when issues seem to appear with everything.

> [09:41:11:151]: 👀 Last change processed in 255ms


1. **BUG**:


Access token is missing:

image copy 30.png
1. **BUG**


It seems like the URL in Reply is cached.

No response body (since it use some old cached url):

image copy 32.png
After I click on file in file tree - the URL was changed and I recieve response:

image copy 33.png