Skip to content

Fix TypeError on network errors and update to v1.1.9 with new API domain#22

Merged
LightHostingFree merged 5 commits intomainfrom
copilot/fix-typeerror-status-reading
Feb 5, 2026
Merged

Fix TypeError on network errors and update to v1.1.9 with new API domain#22
LightHostingFree merged 5 commits intomainfrom
copilot/fix-typeerror-status-reading

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 5, 2026

Fixes crash when axios errors lack response objects (network failures, timeouts) and updates API endpoints to new infrastructure.

Bug Fix: TypeError on undefined response

Added null guards for axios error responses that may be undefined:

try {
    const result = await axios.get(`https://api.is-into.tech/check?domain=${subdomain}.${domain}`);
    checkRes = result;
} catch(err) {
    checkRes = err.response;  // May be undefined on network errors
}

if(!checkRes) return console.log("\nAn error occurred, please try again later.");
if(!checkRes.data) return console.log("\nAn error occurred, please try again later.");

Also fixed inconsistent response handling where success path stored result.data but error path stored err.response, causing property access mismatches.

Version & Infrastructure Update

  • Bump version: 1.1.8 → 1.1.9
  • API domain: api.is-epic.meapi.is-into.tech
    • 7 endpoints updated across check, register, remove, update, and domains functions

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 5, 2026 01:39
Co-authored-by: LightHostingFree <141650265+LightHostingFree@users.noreply.github.com>
Co-authored-by: LightHostingFree <141650265+LightHostingFree@users.noreply.github.com>
Co-authored-by: LightHostingFree <141650265+LightHostingFree@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix TypeError when reading properties of undefined Fix TypeError in register function when axios response is undefined Feb 5, 2026
Co-authored-by: LightHostingFree <141650265+LightHostingFree@users.noreply.github.com>
Copilot AI changed the title Fix TypeError in register function when axios response is undefined Fix TypeError on network errors and update to v1.1.9 with new API domain Feb 5, 2026
@LightHostingFree LightHostingFree marked this pull request as ready for review February 5, 2026 02:08
@LightHostingFree LightHostingFree merged commit 26a42de into main Feb 5, 2026
1 check passed
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