Is it possible to retrieve the accurate image URL from Discord using web3auth?

Here's the situation - When trying to login using Discord as a social login in web3auth, I am able to get the user name and profile image. However, the image URL appears like this:

https://cdn.discord.com/embed/avatars/0.png

Unfortunately, this URL is not functional and results in the following error in the console:

FetchError: request to failed, reason: getaddrinfo ENOTFOUND cdn.discord.com

When attempting to search for this URL in a search engine, the following message pops up:

This site can’t be reached. Check if there is a typo in cdn.discord.com. DNS_PROBE_FINISHED_NXDOMAIN

Answer №1

It appears that the domain cdn.discord.com is not valid. The correct URL should be cdn.discordapp.com. Have you double-checked to ensure you entered the correct URL? If so, it seems like Discord may have provided incorrect information. There doesn't seem to be any issue on your end. You can try reaching out to them or manually replacing the URLs to see if it resolves the problem.

If you intended to use cdn.discordapp.com, then you might be facing DNS issues with your device.

Answer №2

Appreciate you letting us know,

We've resolved the issue on our side. The profileImage field in the function getUserInfo() is now returning the updated CDN URL.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

A step-by-step guide on recovering information from a JSON file within Angular 12

Being a novice developer, I have taken on the challenge of creating a quiz application using Angular 12 to enhance my coding skills. However, I've hit a roadblock when it comes to retrieving data with questions and answers from a JSON file. Despite su ...

Convenient method for extracting the final element within a jQuery section

I need to determine whether the div with the class "divclass" contains an anchor tag. If it does, I have to run a specific block of JavaScript code; otherwise, no action is required. <div class="divclass"> <span> some text</span> ...

Extract different properties from an object as needed

Consider the following function signature: export const readVariableProps = function(obj: Object, props: Array<string>) : any { // props => ['a','b','c'] return obj['a']['b']['c'] ...

Issue with reading initial state value in React application

I'm currently working on an application centered around payment recording functionality. Within my app, there is a state structure that looks something like this: const [state, setstate] = useState({ amountPaid: Number(bill.total), // the 'b ...

Having trouble establishing a connection between the client and server while using Node.js with socket.io, Express, and an HTML file

While following a tutorial on YouTube for creating a simple web game with lobbies/rooms, I encountered an issue. When attempting to establish a connection between the client and server, the expected "a user connected" text did not show up in the console as ...

Sharing data between the main component and the sidebar in React-Router

Currently working with Meteor in combination with React-Router, and this is the code I'm dealing with: Routes.jsx: Meteor.startup(() => { render( <Router history={browserHistory}> <Route path='/' component={App}> ...

AngularJS ng-repeat: displaying a list of filtered outcomes exclusively

I currently have a ng repeat that loops through a set of results. <a class="list-group-item" href="#trip/{{trip.id}}/overview" ng-repeat="trip in trips | filter:search | limitTo:-15"> Basically, as I enter more text into my input field, the list sh ...

Click to dynamically change the input number variable

I'm in the process of creating a special calculator, where you input the number of years into a field, hit submit, and see different results displayed below without the page reloading. All my calculations are working properly at the moment. However, ...

Is there a way to secure a nextjs API route even when accessed by guest users

I am facing a challenge with allowing guest users to write into the database while preventing unauthorized access through specific URLs like www.website.com/api/route/random-type using Postman for making GET requests. I attempted to block this by verifyin ...

Changing the size of text in jquery for selected text can be done using the resize

Is there a way to change the font size of text within a specific div when it is selected by the user? I have the JavaScript code, but I need to resize the font size of the focused or currently selected div only. $("#slider").on("change",function(){ ...

Hover over parts of an image to bring attention to them

I am interested in developing a webpage featuring a black and white image of 5 individuals. When hovering over each person, I would like them to illuminate and display relevant information in a dialog box next to them. Do you have any tips on how I can ac ...

What is the method for determining the height of a div element when it is set to 'height=auto'?

I am trying to determine the height of a specific div using Javascript. Here is the script I have written: function getMainDivHeight() { var num = document.getElementById('up_container').style.height; return num; } However, this script ...

Exploring Netbeans 7.3 for Enhanced JavaScript Autocomplete with Parameters

Ever since the upgrade to netbeans 7.3, I've encountered an issue where netbeans no longer automatically provides me with parameter names. For instance, When I see "methodA(param1, param2) xxx.js" in the autocomplete pop-up, clicking on it or pressi ...

CSS - Absolute positioning appears to be slightly choppy in Microsoft Edge

I have successfully implemented a slip scrolling function to reveal/hide a fixed logo on scroll, but I am facing some issues with Microsoft Edge browser. While testing in various browsers, everything works smoothly except for Microsoft Edge. In this brows ...

Checking for a specific substring within a page link using a React component - is it possible?

Is there a way to determine if the current page link includes a specific string and then return either true or false? class MyDocument extends Document { render() { return ( <Html lang="en"> <Head> ...

How about experimenting with custom CSS attributes?

There was a belief that CSS3 would introduce custom CSS properties that are easily understood by JavaScript and can influence the behavior of elements. jQuery UI and ASP.NET controls pass styling options through their respective JavaScript APIs, which ma ...

JavaScript: Array methods and Functions

export function getPlanetNames(data) { const pNames = data.planets; const results = pNames.filter(function (getNames) { return getNames.name; }); return results; 'data' is stored in a separate file and consists of an object array wit ...

Angular.js: The Best Way to Attach a "Change" Event to a Service

Just starting out with angular.js... I have a HTML5 page where I can input new URLs along with names. Now, I need to validate these URLs against a back-end service to see if they already exist. How can I trigger the “onChange” event on the input field ...

Redirecting script upon successful connection detection

I have created a script that checks for internet connectivity using an image, and redirects if internet is available. However, the issue is that it caches the images, leading to attempts to load them even when offline. Is there a different approach I can ...

Implement a loading spinner to display each time a computed method is invoked in a Vue.js

Whenever a checkbox is checked, my filtering method gets triggered. I am trying to implement a loader that displays while the filter process is ongoing and then shows the results. However, I have encountered an issue where the loader remains visible at all ...